From: John Darrington Date: Wed, 3 Dec 2008 23:31:22 +0000 (+0900) Subject: Remove unused sheetmodel function X-Git-Tag: v0.7.1~74 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e3468c33112e7430f3fc0e1e7eca06b29ee9c0e;p=pspp-builds.git Remove unused sheetmodel function --- diff --git a/lib/gtksheet/gsheetmodel.c b/lib/gtksheet/gsheetmodel.c index 23aca590..e200b300 100644 --- a/lib/gtksheet/gsheetmodel.c +++ b/lib/gtksheet/gsheetmodel.c @@ -415,28 +415,6 @@ g_sheet_model_get_justification (const GSheetModel *model, row, column); } -/** - * g_sheet_model_get_cell_border: - * @sheet_model: A #GSheetModel - * @row: The row - * @column: The column - * - * Returns the cell border of the cell at @row, @column - * Returns: the cell border, or NULL on error. - **/ -const GtkSheetCellBorder * -g_sheet_model_get_cell_border (const GSheetModel *model, - glong row, glong column) -{ - g_return_val_if_fail (G_IS_SHEET_MODEL (model), NULL); - if ( ! G_SHEET_MODEL_GET_IFACE (model)->get_cell_border) - return NULL; - - return G_SHEET_MODEL_GET_IFACE (model)->get_cell_border (model, - row, column); -} - - /** * g_sheet_model_get_column_count: diff --git a/lib/gtksheet/gsheetmodel.h b/lib/gtksheet/gsheetmodel.h index cd7f1d33..6a54d7e8 100644 --- a/lib/gtksheet/gsheetmodel.h +++ b/lib/gtksheet/gsheetmodel.h @@ -117,11 +117,6 @@ struct _GSheetModelIface const GtkJustification * (* get_justification) (const GSheetModel *sheet_model, glong row, glong column); - const GtkSheetCellBorder * (* get_cell_border) (const GSheetModel *sheet_model, - glong row, glong column); - - - /* column related metadata */ gchar * (*get_column_title) (const GSheetModel *, gint col); diff --git a/lib/gtksheet/gtksheet.c b/lib/gtksheet/gtksheet.c index 5641776d..c638c9e7 100644 --- a/lib/gtksheet/gtksheet.c +++ b/lib/gtksheet/gtksheet.c @@ -5213,7 +5213,6 @@ gtk_sheet_get_attributes (const GtkSheet *sheet, gint row, gint col, { GdkColor *fg, *bg; const GtkJustification *j ; - const GtkSheetCellBorder *border ; GdkColormap *colormap; g_return_val_if_fail (sheet != NULL, FALSE); @@ -5255,10 +5254,6 @@ gtk_sheet_get_attributes (const GtkSheet *sheet, gint row, gint col, if (j) attr->justification = *j; - border = g_sheet_model_get_cell_border (sheet->model, row, col); - - if ( border ) attr->border = *border; - return TRUE; } diff --git a/src/ui/gui/psppire-data-store.c b/src/ui/gui/psppire-data-store.c index ce7b2518..2059d75a 100644 --- a/src/ui/gui/psppire-data-store.c +++ b/src/ui/gui/psppire-data-store.c @@ -275,7 +275,6 @@ psppire_data_store_sheet_model_init (GSheetModelIface *iface) iface->is_editable = NULL; iface->get_foreground = NULL; iface->get_background = NULL; - iface->get_cell_border = NULL; iface->get_column_count = psppire_data_store_get_var_count; iface->get_row_count = psppire_data_store_get_case_count_wrapper; diff --git a/src/ui/gui/psppire-var-store.c b/src/ui/gui/psppire-var-store.c index 083bffad..19b50028 100644 --- a/src/ui/gui/psppire-var-store.c +++ b/src/ui/gui/psppire-var-store.c @@ -295,7 +295,6 @@ psppire_var_store_sheet_model_init (GSheetModelIface *iface) iface->is_editable = psppire_var_store_is_editable; iface->get_foreground = psppire_var_store_get_foreground; iface->get_background = NULL; - iface->get_cell_border = NULL; iface->get_justification = NULL; iface->get_column_title = get_column_title;