[ghex/expand-search-options] gtkhex: remove now-superfluous function.
- From: Logan Rathbone <larathbone src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex/expand-search-options] gtkhex: remove now-superfluous function.
- Date: Tue, 19 Apr 2022 07:44:40 +0000 (UTC)
commit 72ee17d87b040daf5ac965e03689b3d85f9f9a64
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]