[nautilus] canvas-container: remove unused code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] canvas-container: remove unused code
- Date: Tue, 9 Sep 2014 05:08:45 +0000 (UTC)
commit e3987a14d4ef439e9c36cdb50490a4be949c0832
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Sep 7 13:35:40 2014 -0700
canvas-container: remove unused code
libnautilus-private/nautilus-canvas-container.c | 6 +-----
libnautilus-private/nautilus-canvas-private.h | 1 -
2 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/libnautilus-private/nautilus-canvas-container.c b/libnautilus-private/nautilus-canvas-container.c
index ebdd54f..11b50e8 100644
--- a/libnautilus-private/nautilus-canvas-container.c
+++ b/libnautilus-private/nautilus-canvas-container.c
@@ -2164,7 +2164,6 @@ nautilus_canvas_container_move_icon (NautilusCanvasContainer *container,
/* Implementation of rubberband selection. */
static void
rubberband_select (NautilusCanvasContainer *container,
- const EelDRect *previous_rect,
const EelDRect *current_rect)
{
GList *p;
@@ -2322,14 +2321,11 @@ rubberband_timeout_callback (gpointer data)
selection_rect.y1 = y2;
rubberband_select (container,
- &band_info->prev_rect,
&selection_rect);
band_info->prev_x = x;
band_info->prev_y = y;
- band_info->prev_rect = selection_rect;
-
return TRUE;
}
@@ -3287,7 +3283,7 @@ keyboard_move_to (NautilusCanvasContainer *container,
if (icon && container->details->keyboard_rubberband_start) {
rect = get_rubberband (container->details->keyboard_rubberband_start,
icon);
- rubberband_select (container, NULL, &rect);
+ rubberband_select (container, &rect);
}
} else if (event != NULL &&
(event->state & GDK_CONTROL_MASK) == 0 &&
diff --git a/libnautilus-private/nautilus-canvas-private.h b/libnautilus-private/nautilus-canvas-private.h
index d624556..77679d1 100644
--- a/libnautilus-private/nautilus-canvas-private.h
+++ b/libnautilus-private/nautilus-canvas-private.h
@@ -80,7 +80,6 @@ typedef struct {
guint timer_id;
guint prev_x, prev_y;
- EelDRect prev_rect;
int last_adj_x;
int last_adj_y;
} NautilusCanvasRubberbandInfo;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]