group: Delete unused functions.
[pspp-builds.git] / src / math / group.c
index 154e6f882ffd7341693a6590a3932eb990b111ce..ea4dbf95c365599cc6192390750dd9098c43e897 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997-9, 2000, 2009, 2011 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -16,7 +16,6 @@
 
 #include <config.h>
 #include <stdlib.h>
-#include <libpspp/alloc.h>
 #include <libpspp/compiler.h>
 #include <libpspp/hash.h>
 #include "group.h"
 #include <data/variable.h>
 #include <libpspp/misc.h>
 
-
-/* Return -1 if the id of a is less than b; +1 if greater than and
-   0 if equal */
-int
-compare_group(const struct group_statistics *a,
-                const struct group_statistics *b,
-                int width)
-{
-  return compare_values(&a->id, &b->id, width);
-}
-
-
-
-unsigned
-hash_group(const struct group_statistics *g, int width)
-{
-  unsigned id_hash;
-
-  id_hash = hash_value(&g->id, width);
-
-  return id_hash;
-}
-
+#include "xalloc.h"
 
 void
-free_group(struct group_statistics *v, void *aux UNUSED)
+free_group (struct group_statistics *v, void *aux UNUSED)
 {
   free(v);
 }