From: John Darrington Date: Tue, 28 Jul 2009 10:59:42 +0000 (+0200) Subject: remove unused return value X-Git-Tag: build37~21 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=627d9064e04c3e76fcddf033cb2a47d13d40a98e;p=pspp-builds.git remove unused return value --- diff --git a/lib/gtk-contrib/psppire-sheet.c b/lib/gtk-contrib/psppire-sheet.c index 63307d8f..6703f0b6 100644 --- a/lib/gtk-contrib/psppire-sheet.c +++ b/lib/gtk-contrib/psppire-sheet.c @@ -387,7 +387,7 @@ POSSIBLE_RESIZE (const PsppireSheet *sheet, gint x, gint y, } -static gboolean +static void rectangle_from_range (PsppireSheet *sheet, const PsppireSheetRange *range, GdkRectangle *r) { @@ -424,22 +424,20 @@ rectangle_from_range (PsppireSheet *sheet, const PsppireSheetRange *range, { r->x += sheet->row_title_area.width; } - - return TRUE; } -static gboolean +static void rectangle_from_cell (PsppireSheet *sheet, gint row, gint col, GdkRectangle *r) { PsppireSheetRange range; - g_return_val_if_fail (row >= 0, FALSE); - g_return_val_if_fail (col >= 0, FALSE); + g_return_if_fail (row >= 0); + g_return_if_fail (col >= 0); range.row0 = range.rowi = row; range.col0 = range.coli = col; - return rectangle_from_range (sheet, &range, r); + rectangle_from_range (sheet, &range, r); }