[ghex] Removed a set but unused variable
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] Removed a set but unused variable
- Date: Tue, 26 Jul 2011 18:18:30 +0000 (UTC)
commit eb6254e6b7d41d3455b853144e9bc1ab88d34f76
Author: Kalev Lember <kalevlember gmail com>
Date: Sun Jul 24 02:50:11 2011 +0300
Removed a set but unused variable
src/gtkhex.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/gtkhex.c b/src/gtkhex.c
index f8c0162..986bfd2 100644
--- a/src/gtkhex.c
+++ b/src/gtkhex.c
@@ -1618,7 +1618,6 @@ static void gtk_hex_finalize(GObject *o) {
static gboolean gtk_hex_key_press(GtkWidget *w, GdkEventKey *event) {
GtkHex *gh = GTK_HEX(w);
- guint old_cp = gh->cursor_pos;
gint ret = TRUE;
hide_cursor(gh);
@@ -1759,7 +1758,6 @@ static gboolean gtk_hex_key_press(GtkWidget *w, GdkEventKey *event) {
gh->cursor_pos, gh->insert, TRUE);
if (gh->selecting)
gh->selecting = FALSE;
- old_cp = gh->cursor_pos;
gtk_hex_set_cursor(gh, gh->cursor_pos + 1);
}
else if((event->keyval >= GDK_KP_0)&&(event->keyval <= GDK_KP_9)) {
@@ -1767,7 +1765,6 @@ static gboolean gtk_hex_key_press(GtkWidget *w, GdkEventKey *event) {
gh->cursor_pos, gh->insert, TRUE);
if (gh->selecting)
gh->selecting = FALSE;
- old_cp = gh->cursor_pos;
gtk_hex_set_cursor(gh, gh->cursor_pos + 1);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]