projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0b27f6
)
case-map: Simplify case_map_stage_get_case_map().
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 4 Mar 2023 01:56:15 +0000
(17:56 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 5 Mar 2023 19:23:16 +0000
(11:23 -0800)
A caseproto can't contain -1s anymore, so don't look for them.
src/data/case-map.c
patch
|
blob
|
history
diff --git
a/src/data/case-map.c
b/src/data/case-map.c
index 968b945af2a9318a74324b458b9382a212dbab96..b340972c475739d5c1d3a0de7a219b360ea4af23 100644
(file)
--- a/
src/data/case-map.c
+++ b/
src/data/case-map.c
@@
-307,7
+307,6
@@
case_map_stage_get_case_map (const struct case_map_stage *stage)
{
struct case_map *map;
size_t n_vars = dict_get_n_vars (stage->dict);
- size_t n_values;
size_t i;
bool identity_map = true;
@@
-329,10
+328,6
@@
case_map_stage_get_case_map (const struct case_map_stage *stage)
return NULL;
}
- n_values = caseproto_get_n_widths (map->proto);
- while (n_values > 0 && caseproto_get_width (map->proto, n_values - 1) == -1)
- map->proto = caseproto_remove_widths (map->proto, --n_values, 1);
-
return map;
}