From: Ben Pfaff Date: Sat, 2 Mar 2024 19:08:29 +0000 (-0800) Subject: dictionary: Remove unused functions and prototypes. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ff7d3263a6bd7919815aa63c7b7c6162b773f67;p=pspp dictionary: Remove unused functions and prototypes. --- diff --git a/src/data/dictionary.c b/src/data/dictionary.c index fb69d624af..a55a123991 100644 --- a/src/data/dictionary.c +++ b/src/data/dictionary.c @@ -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 * diff --git a/src/data/dictionary.h b/src/data/dictionary.h index 02add403a9..93c4e35bbb 100644 --- a/src/data/dictionary.h +++ b/src/data/dictionary.h @@ -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. */