[gnome-calendar] project: remove unused variables
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] project: remove unused variables
- Date: Tue, 23 May 2017 01:14:07 +0000 (UTC)
commit a6470338477a5c69cfd446f69cf8bc7d431cc218
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon May 22 21:57:24 2017 -0300
project: remove unused variables
src/gcal-event-widget.c | 2 --
src/gcal-manager.c | 4 ----
src/views/gcal-year-view.c | 1 -
3 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/gcal-event-widget.c b/src/gcal-event-widget.c
index 6376fee..3839499 100644
--- a/src/gcal-event-widget.c
+++ b/src/gcal-event-widget.c
@@ -136,14 +136,12 @@ get_visible_text (GtkWidget *widget,
static gint
get_vertical_text_height (GtkWidget *widget)
{
- GcalEventWidget *self;
GtkBorder border, padding;
GtkStyleContext *context;
PangoLayout *layout;
gint layout_height;
gchar* display_text;
- self = GCAL_EVENT_WIDGET (widget);
context = gtk_widget_get_style_context (widget);
display_text = get_visible_text (widget, GTK_ORIENTATION_VERTICAL);
layout = gtk_widget_create_pango_layout (widget, display_text);
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index da668dc..627908e 100644
--- a/src/gcal-manager.c
+++ b/src/gcal-manager.c
@@ -1159,8 +1159,6 @@ gcal_manager_get_sources (GcalManager *manager)
while (g_hash_table_iter_next (&iter, &key, &value))
{
- GcalManagerUnit *unit = value;
-
if (!is_source_enabled (key))
continue;
@@ -1577,7 +1575,6 @@ gcal_manager_disable_source (GcalManager *manager,
ESource *source)
{
ESourceSelectable *selectable;
- GcalManagerUnit *unit;
const gchar *source_uid;
GCAL_ENTRY;
@@ -1585,7 +1582,6 @@ gcal_manager_disable_source (GcalManager *manager,
g_return_if_fail (GCAL_IS_MANAGER (manager));
g_return_if_fail (E_IS_SOURCE (source));
- unit = g_hash_table_lookup (manager->clients, source);
selectable = e_source_get_extension (source, E_SOURCE_EXTENSION_CALENDAR);
if (!is_source_enabled (source))
diff --git a/src/views/gcal-year-view.c b/src/views/gcal-year-view.c
index 0b0554e..7d8c1f9 100644
--- a/src/views/gcal-year-view.c
+++ b/src/views/gcal-year-view.c
@@ -1785,7 +1785,6 @@ gcal_year_view_component_added (ECalDataModelSubscriber *subscriber,
GDateTime *event_start, *event_end;
GcalEvent *event;
GError *error;
- GList *l;
guint i, start_month, end_month;
error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]