X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcategoricals.c;h=b7e51751a5b8492fe1a5057d5b5c254577ecb879;hb=5055ec22100c84153e76662bae23063408a6a935;hp=1f302a0aa78c679d17944ca779e28e84d9e85c84;hpb=2fede4261ca029643db8be636a1119fd1769e894;p=pspp-builds.git diff --git a/src/math/categoricals.c b/src/math/categoricals.c index 1f302a0a..b7e51751 100644 --- a/src/math/categoricals.c +++ b/src/math/categoricals.c @@ -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)