From 591bcbeb910e0d90dc4076f09c23074c96a2e857 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 15 Sep 2009 05:15:53 -0500 Subject: Remove a bunch of unused functions. --- e-util/e-bit-array.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'e-util/e-bit-array.c') diff --git a/e-util/e-bit-array.c b/e-util/e-bit-array.c index dacd132dd2..c986b4cefc 100644 --- a/e-util/e-bit-array.c +++ b/e-util/e-bit-array.c @@ -202,20 +202,6 @@ e_bit_array_foreach (EBitArray *eba, } } -/** - * e_selection_model_clear - * @selection: #EBitArray to clear - * - * This routine clears the selection to no rows selected. - */ -void -e_bit_array_clear(EBitArray *eba) -{ - g_free(eba->data); - eba->data = NULL; - eba->bit_count = 0; -} - #define PART(x,n) (((x) & (0x01010101 << n)) >> n) #define SECTION(x, n) (((x) >> (n * 8)) & 0xff) @@ -311,32 +297,6 @@ e_bit_array_bit_count (EBitArray *eba) return eba->bit_count; } -gboolean -e_bit_array_cross_and (EBitArray *eba) -{ - gint i; - for (i = 0; i < eba->bit_count / 32; i++) { - if (eba->data[i] != ONES) - return FALSE; - } - if ((eba->bit_count % 32) && ((eba->data[i] & BITMASK_LEFT(eba->bit_count)) != BITMASK_LEFT(eba->bit_count))) - return FALSE; - return TRUE; -} - -gboolean -e_bit_array_cross_or (EBitArray *eba) -{ - gint i; - for (i = 0; i < eba->bit_count / 32; i++) { - if (eba->data[i] != 0) - return TRUE; - } - if ((eba->bit_count % 32) && ((eba->data[i] & BITMASK_LEFT(eba->bit_count)) != 0)) - return TRUE; - return FALSE; -} - #define OPERATE(object, i,mask,grow) ((grow) ? (((object)->data[(i)]) |= ((guint32) ~(mask))) : (((object)->data[(i)]) &= (mask))) void -- cgit