Remove unused function categoricals_index
[pspp-builds.git] / src / math / categoricals.c
index 1f302a0aa78c679d17944ca779e28e84d9e85c84..b7e51751a5b8492fe1a5057d5b5c254577ecb879 100644 (file)
@@ -250,19 +250,6 @@ categoricals_n_count (const struct categoricals *cat, size_t n)
 }
 
 
-/* Return the index for value VAL in the Nth variable */
-int
-categoricals_index (const struct categoricals *cat, size_t n, const union value *val)
-{
-  struct value_node *vn = lookup_value (&cat->vp[n].map, cat->vp[n].var, val);
-
-  if ( vn == NULL)
-    return -1;
-
-  return vn->subscript;
-}
-
-
 /* Return the total number of categories */
 size_t
 categoricals_total (const struct categoricals *cat)