[ghex/expand-search-options: 11/14] gtkhex: remove now-superfluous function.




commit 73367e359ad2deb66d12ca914440e6124753e210
Author: Logan Rathbone <poprocks gmail com>
Date:   Tue Apr 19 01:02:21 2022 -0400

    gtkhex: remove now-superfluous function.

 src/gtkhex.c | 17 -----------------
 1 file changed, 17 deletions(-)
---
diff --git a/src/gtkhex.c b/src/gtkhex.c
index 641b1e2..1a91ea2 100644
--- a/src/gtkhex.c
+++ b/src/gtkhex.c
@@ -2027,23 +2027,6 @@ hex_widget_delete_highlight (HexWidget *self, HexWidgetAutoHighlight *ahl,
        bytes_changed(self, start, end);
 }
 
-/* stolen from hex_document_compare_data - but uses
- * hex_widget_* stuff rather than hex_document_* directly
- * and simply returns a gboolean.
- */
-static gboolean
-hex_widget_compare_data (HexWidget *self, guchar *cmp, gint64 pos, int len)
-{
-       for (int i = 0; i < len; i++)
-       {
-               guchar c = hex_widget_get_byte (self, pos + i);
-
-               if (c != *(cmp + i))
-                       return FALSE;
-       }
-       return TRUE;
-}
-
 static gboolean
 hex_widget_find_limited (HexWidget *self, char *find, int findlen,
                HexSearchFlags flags, gint64 lower, gint64 upper,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]