more work toward making table_item just a pivot_Table
[pspp] / src / output / pivot-table.c
index 96dd9d2413abaac75fd58a251a2aa41ef46c8a96..d0588365a143529ba2812fcc31a0918f21bc86d9 100644 (file)
@@ -994,25 +994,6 @@ pivot_table_is_empty (const struct pivot_table *table)
   return hmap_is_empty (&table->cells);
 }
 
-size_t *
-pivot_table_next_display_layer (const struct pivot_table *pt, size_t *indexes,
-                                bool print)
-{
-  const struct pivot_axis *layer_axis = &pt->axes[PIVOT_AXIS_LAYER];
-  if (print && pt->look->print_all_layers)
-    return pivot_axis_iterator_next (indexes, layer_axis);
-  else if (!indexes)
-    {
-      size_t size = layer_axis->n_dimensions * sizeof *pt->current_layer;
-      return xmemdup (pt->current_layer, MAX (size, 1));
-    }
-  else
-    {
-      free (indexes);
-      return NULL;
-    }
-}
-
 static unsigned int
 pivot_cell_hash_indexes (const size_t *indexes, size_t n_idx)
 {