From: Ben Pfaff <blp@gnu.org>
Date: Wed, 10 Jun 2009 02:48:50 +0000 (-0700)
Subject: output: Get rid of unused members of struct som_table_class.
X-Git-Tag: v0.7.3~46
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d58a563b1d21eb1aaa8b6ab28003cc0d7fd6c10;p=pspp-builds.git

output: Get rid of unused members of struct som_table_class.

I planned to use these at one point, but no longer do.
---

diff --git a/src/output/manager.h b/src/output/manager.h
index 58d0c12d..7ebe541b 100644
--- a/src/output/manager.h
+++ b/src/output/manager.h
@@ -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 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
@@ -82,20 +82,14 @@ struct som_table_class
     /* Query columns and rows. */
     void (*count) (int *n_columns, int *n_rows);
     void (*area) (int *horiz, int *vert);
-    void (*width) (int *columns);
-    void (*height) (int *rows);
     void (*columns) (int *style);
-    int (*breakable) (int row);				/* ? */
     void (*headers) (int *l, int *r, int *t, int *b);
-    void (*join) (int *(column[2]), int *(row[2]));	/* ? */
     void (*cumulate) (int cumtype, int start, int *end, int max, int *actual);
     void (*flags) (unsigned *);
     bool (*fits_width) (int width);
     bool (*fits_length) (int length);
 
     /* Set columns and rows. */
-    void (*set_width) (int column, int width);		/* ? */
-    void (*set_height) (int row, int height);		/* ? */
     void (*set_headers) (int l, int r, int t, int b);
 
     /* Rendering. */
diff --git a/src/output/table.c b/src/output/table.c
index 9e925a44..434db0bb 100644
--- a/src/output/table.c
+++ b/src/output/table.c
@@ -1287,19 +1287,13 @@ const struct som_table_class tab_table_class =
 
     tabi_count,
     tabi_area,
-    NULL,
-    NULL,
     tabi_columns,
-    NULL,
     tabi_headers,
-    NULL,
     tabi_cumulate,
     tabi_flags,
     tabi_fits_width,
     tabi_fits_length,
 
-    NULL,
-    NULL,
     tabi_set_headers,
 
     tabi_title,