dictionary: Remove unused functions and prototypes.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 2 Mar 2024 19:08:29 +0000 (11:08 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 2 Mar 2024 19:08:29 +0000 (11:08 -0800)
src/data/dictionary.c
src/data/dictionary.h

index fb69d624afcc0290f0a48a8edb2148faaf842fb9..a55a12399150f566b6ca9a9842373ce4dc0c736e 100644 (file)
@@ -1369,25 +1369,6 @@ dict_get_proto (const struct dictionary *d_)
   return d->proto;
 }
 
-/* Returns the number of values occupied by the variables in
-   dictionary D.  All variables are considered if EXCLUDE_CLASSES
-   is 0, or it may contain one or more of DC_ORDINARY, DC_SYSTEM,
-   or DC_SCRATCH to exclude the corresponding type of variable. */
-size_t
-dict_count_values (const struct dictionary *d, unsigned int exclude_classes)
-{
-  assert (!(exclude_classes & ~DC_ALL));
-
-  size_t n = 0;
-  for (size_t i = 0; i < d->n_vars; i++)
-    {
-      enum dict_class class = var_get_dict_class (d->vars[i].var);
-      if (!(exclude_classes & class))
-        n++;
-    }
-  return n;
-}
-
 /* Returns the file label for D, or a null pointer if D is
    unlabeled (see cmd_file_label()). */
 const char *
index 02add403a96c95dfd8fd5f39d9389cae9b746ad9..93c4e35bbbac28a8b636ff359721d4db98ce19e8 100644 (file)
@@ -114,12 +114,6 @@ void dict_set_case_limit (struct dictionary *, casenumber);
 /* Size of cases for this dictionary. */
 const struct caseproto *dict_get_proto (const struct dictionary *);
 
-/* Making this dictionary's cases smaller (if some variables were
-   deleted). */
-size_t dict_count_values (const struct dictionary *,
-                          unsigned int exclude_classes);
-void dict_compact_values (struct dictionary *);
-
 /* SPLIT FILE variables.
 
    SPLIT_NONE is used if and only if there are no split file variables. */