aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-print-utils.c4
-rw-r--r--lib/ephy-state.c4
-rw-r--r--lib/widgets/ephy-node-view.c4
-rw-r--r--lib/widgets/ephy-zoom-control.c2
4 files changed, 0 insertions, 14 deletions
diff --git a/lib/ephy-print-utils.c b/lib/ephy-print-utils.c
index 3c6a6e412..dbb28205f 100644
--- a/lib/ephy-print-utils.c
+++ b/lib/ephy-print-utils.c
@@ -89,7 +89,6 @@ ephy_print_utils_page_setup_new_from_key_file (GKeyFile *key_file,
GtkPaperSize *paper_size = NULL;
gdouble width, height, top, bottom, left, right;
char *name = NULL, *ppd_name = NULL, *display_name = NULL, *orientation = NULL;
- gboolean retval = TRUE;
GError *err = NULL;
g_return_val_if_fail (key_file != NULL, NULL);
@@ -97,7 +96,6 @@ ephy_print_utils_page_setup_new_from_key_file (GKeyFile *key_file,
if (!g_key_file_has_group (key_file, PAGE_SETUP_GROUP) ||
!g_key_file_has_group (key_file, PAPER_SIZE_GROUP)) {
g_set_error (error, ERROR_QUARK, 0, "Not a valid epiphany page setup file");
- retval = FALSE;
goto out;
}
@@ -105,7 +103,6 @@ ephy_print_utils_page_setup_new_from_key_file (GKeyFile *key_file,
v = g_key_file_get_double (kf, group, name, &err); \
if (err != NULL) {\
g_propagate_error (error, err);\
- retval = FALSE;\
goto out;\
}
@@ -130,7 +127,6 @@ if (err != NULL) {\
if ((ppd_name == NULL && name == NULL) || orientation == NULL)
{
g_set_error (error, ERROR_QUARK, 0, "Not a valid epiphany page setup file");
- retval = FALSE;
goto out;
}
diff --git a/lib/ephy-state.c b/lib/ephy-state.c
index 0a347c979..84e9c4e32 100644
--- a/lib/ephy-state.c
+++ b/lib/ephy-state.c
@@ -103,12 +103,8 @@ ensure_states (void)
{
if (states == NULL)
{
- volatile GType flags_type; /* work around gcc's optimiser */
char *xml_file;
- /* make sure the type is known when we read the db */
- flags_type = EPHY_TYPE_STATE_WINDOW_FLAGS;
-
xml_file = g_build_filename (ephy_dot_dir (),
EPHY_STATES_XML_FILE,
NULL);
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index 2f5429143..eabdaa422 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -1605,12 +1605,8 @@ ephy_node_view_enable_drag_source (EphyNodeView *view,
int base_drag_column_id,
int extra_drag_column_id)
{
- GtkWidget *treeview;
-
g_return_if_fail (view != NULL);
- treeview = GTK_WIDGET (view);
-
view->priv->source_target_list =
gtk_target_list_new (types, n_types);
diff --git a/lib/widgets/ephy-zoom-control.c b/lib/widgets/ephy-zoom-control.c
index c61c9941c..fc132d438 100644
--- a/lib/widgets/ephy-zoom-control.c
+++ b/lib/widgets/ephy-zoom-control.c
@@ -173,10 +173,8 @@ static void
ephy_zoom_control_class_init (EphyZoomControlClass *klass)
{
GObjectClass *object_class;
- GtkToolItemClass *tool_item_class;
object_class = (GObjectClass *)klass;
- tool_item_class = (GtkToolItemClass *)klass;
object_class->set_property = ephy_zoom_control_set_property;
object_class->get_property = ephy_zoom_control_get_property;