cateoricals.c categoricals.h clean up.
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 2 Nov 2012 14:24:12 +0000 (15:24 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 2 Nov 2012 14:26:02 +0000 (15:26 +0100)
Removed a prototype whose implementation no longer exists.
Added a few comments.
Whitespace changes.

src/math/categoricals.c
src/math/categoricals.h

index b9748c759ed8f114969728743c84d3880ce033df..2a0d4f85ba9e000fb1e4ac36e5d37684f4d2a389 100644 (file)
@@ -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);
index 53e309ed62eaf76d9b7cc808a4443cae070ec3d1..62ff10c100ea4c778c0d4a0d316217cd99f981be 100644 (file)
@@ -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);