summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-05 02:14:49 +0100
committerZenWalker <[email protected]>2019-03-07 00:00:20 +0100
commitfc9a637006bab37dbb73c678983032111831a623 (patch)
treecd6e7ccb63135b737b244a89f0589603e3aecf1c /libcaja-private
parentee16c212d5ce11f6d782f86bb62302356b163462 (diff)
downloadcaja-fc9a637006bab37dbb73c678983032111831a623.tar.bz2
caja-fc9a637006bab37dbb73c678983032111831a623.tar.xz
avoid variables set but not used
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-file-conflict-dialog.c3
-rw-r--r--libcaja-private/caja-icon-canvas-item.c2
-rw-r--r--libcaja-private/caja-keep-last-vertical-box.c2
-rw-r--r--libcaja-private/caja-program-choosing.c3
-rw-r--r--libcaja-private/caja-progress-info.c5
5 files changed, 2 insertions, 13 deletions
diff --git a/libcaja-private/caja-file-conflict-dialog.c b/libcaja-private/caja-file-conflict-dialog.c
index edc809d0..61af0d92 100644
--- a/libcaja-private/caja-file-conflict-dialog.c
+++ b/libcaja-private/caja-file-conflict-dialog.c
@@ -562,13 +562,10 @@ caja_file_conflict_dialog_init (CajaFileConflictDialog *fcd)
GtkWidget *widget, *dialog_area;
CajaFileConflictDialogPrivate *details;
GtkDialog *dialog;
- gboolean source_is_dir;
details = fcd->details = caja_file_conflict_dialog_get_instance_private (fcd);
dialog = GTK_DIALOG (fcd);
- source_is_dir = caja_file_is_directory (details->source);
-
/* Setup the main hbox */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
dialog_area = gtk_dialog_get_content_area (dialog);
diff --git a/libcaja-private/caja-icon-canvas-item.c b/libcaja-private/caja-icon-canvas-item.c
index b1c66822..887caddc 100644
--- a/libcaja-private/caja-icon-canvas-item.c
+++ b/libcaja-private/caja-icon-canvas-item.c
@@ -1697,7 +1697,6 @@ real_map_surface (CajaIconCanvasItem *icon_item)
{
EelCanvas *canvas;
char *audio_filename;
- CajaIconContainer *container;
GdkPixbuf *temp_pixbuf, *old_pixbuf, *audio_pixbuf;
int emblem_size;
GtkStyleContext *style;
@@ -1707,7 +1706,6 @@ real_map_surface (CajaIconCanvasItem *icon_item)
temp_pixbuf = icon_item->details->pixbuf;
canvas = EEL_CANVAS_ITEM(icon_item)->canvas;
- container = CAJA_ICON_CONTAINER (canvas);
g_object_ref (temp_pixbuf);
diff --git a/libcaja-private/caja-keep-last-vertical-box.c b/libcaja-private/caja-keep-last-vertical-box.c
index 2304acb4..b158c81a 100644
--- a/libcaja-private/caja-keep-last-vertical-box.c
+++ b/libcaja-private/caja-keep-last-vertical-box.c
@@ -89,7 +89,6 @@ static void
caja_keep_last_vertical_box_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
{
- GtkBox *box;
GtkWidget *last_child, *child;
GList *children, *l;
GtkAllocation last_child_allocation, child_allocation, tiny_allocation;
@@ -99,7 +98,6 @@ caja_keep_last_vertical_box_size_allocate (GtkWidget *widget,
GTK_WIDGET_CLASS (caja_keep_last_vertical_box_parent_class)->size_allocate (widget, allocation);
- box = GTK_BOX (widget);
children = gtk_container_get_children (GTK_CONTAINER (widget));
l = g_list_last (children);
diff --git a/libcaja-private/caja-program-choosing.c b/libcaja-private/caja-program-choosing.c
index a49a96e9..920261d7 100644
--- a/libcaja-private/caja-program-choosing.c
+++ b/libcaja-private/caja-program-choosing.c
@@ -209,13 +209,12 @@ caja_launch_application_by_uri (GAppInfo *application,
GdkDisplay *display;
GdkAppLaunchContext *launch_context;
CajaIconInfo *icon;
- int count, total;
+ int count;
g_assert (uris != NULL);
/* count the number of uris with local paths */
count = 0;
- total = g_list_length (uris);
locations = NULL;
for (l = uris; l != NULL; l = l->next)
{
diff --git a/libcaja-private/caja-progress-info.c b/libcaja-private/caja-progress-info.c
index 8d6885c4..dbf3db55 100644
--- a/libcaja-private/caja-progress-info.c
+++ b/libcaja-private/caja-progress-info.c
@@ -463,7 +463,7 @@ widget_reposition_as_paused (GtkWidget * widget)
ProgressWidgetData *data;
GList *children, *child;
gboolean abort = FALSE;
- int i, mypos = -1;
+ int i;
GtkWidget * container = get_widgets_container();
children = gtk_container_get_children (GTK_CONTAINER(container));
@@ -473,9 +473,6 @@ widget_reposition_as_paused (GtkWidget * widget)
data = (ProgressWidgetData*) g_object_get_data (
G_OBJECT(child->data), "data");
- if (child->data == widget)
- mypos = i;
-
if (child->data != widget && is_op_paused(data->state)) {
abort = TRUE;
i--;