From c427bfc34eb7db7e0b489091430fe1cb373b2261 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Fri, 2 Nov 2012 15:24:12 +0100 Subject: [PATCH] cateoricals.c categoricals.h clean up. Removed a prototype whose implementation no longer exists. Added a few comments. Whitespace changes. --- src/math/categoricals.c | 3 +-- src/math/categoricals.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/math/categoricals.c b/src/math/categoricals.c index b9748c759e..2a0d4f85ba 100644 --- a/src/math/categoricals.c +++ b/src/math/categoricals.c @@ -96,7 +96,7 @@ lookup_variable (const struct hmap *map, const struct variable *var, unsigned in struct interact_params { - /* A map indexed by a interaction_value */ + /* A map of cases indexed by a interaction_value */ struct hmap ivmap; struct interaction *iact; @@ -542,7 +542,6 @@ categoricals_done (const struct categoricals *cat_) HMAP_FOR_EACH (ivn, struct interaction_value, node, &iap->ivmap) { iap->reverse_interaction_value_map[x++] = ivn; - } assert (x <= iap->n_cats); diff --git a/src/math/categoricals.h b/src/math/categoricals.h index 53e309ed62..62ff10c100 100644 --- a/src/math/categoricals.h +++ b/src/math/categoricals.h @@ -87,8 +87,6 @@ double categoricals_get_code_for_case (const struct categoricals *cat, int subsc /* These use the long map. Useful for descriptive statistics. */ -/* Return the value corresponding to the N'th category */ -const union value * categoricals_get_value_by_category (const struct categoricals *cat, int n); const struct ccase * categoricals_get_case_by_category_real (const struct categoricals *cat, int iact, int n); -- 2.30.2