project: remove unused variables
This commit is contained in:
@@ -136,14 +136,12 @@ get_visible_text (GtkWidget *widget,
|
|||||||
static gint
|
static gint
|
||||||
get_vertical_text_height (GtkWidget *widget)
|
get_vertical_text_height (GtkWidget *widget)
|
||||||
{
|
{
|
||||||
GcalEventWidget *self;
|
|
||||||
GtkBorder border, padding;
|
GtkBorder border, padding;
|
||||||
GtkStyleContext *context;
|
GtkStyleContext *context;
|
||||||
PangoLayout *layout;
|
PangoLayout *layout;
|
||||||
gint layout_height;
|
gint layout_height;
|
||||||
gchar* display_text;
|
gchar* display_text;
|
||||||
|
|
||||||
self = GCAL_EVENT_WIDGET (widget);
|
|
||||||
context = gtk_widget_get_style_context (widget);
|
context = gtk_widget_get_style_context (widget);
|
||||||
display_text = get_visible_text (widget, GTK_ORIENTATION_VERTICAL);
|
display_text = get_visible_text (widget, GTK_ORIENTATION_VERTICAL);
|
||||||
layout = gtk_widget_create_pango_layout (widget, display_text);
|
layout = gtk_widget_create_pango_layout (widget, display_text);
|
||||||
|
|||||||
@@ -1159,8 +1159,6 @@ gcal_manager_get_sources (GcalManager *manager)
|
|||||||
|
|
||||||
while (g_hash_table_iter_next (&iter, &key, &value))
|
while (g_hash_table_iter_next (&iter, &key, &value))
|
||||||
{
|
{
|
||||||
GcalManagerUnit *unit = value;
|
|
||||||
|
|
||||||
if (!is_source_enabled (key))
|
if (!is_source_enabled (key))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@@ -1577,7 +1575,6 @@ gcal_manager_disable_source (GcalManager *manager,
|
|||||||
ESource *source)
|
ESource *source)
|
||||||
{
|
{
|
||||||
ESourceSelectable *selectable;
|
ESourceSelectable *selectable;
|
||||||
GcalManagerUnit *unit;
|
|
||||||
const gchar *source_uid;
|
const gchar *source_uid;
|
||||||
|
|
||||||
GCAL_ENTRY;
|
GCAL_ENTRY;
|
||||||
@@ -1585,7 +1582,6 @@ gcal_manager_disable_source (GcalManager *manager,
|
|||||||
g_return_if_fail (GCAL_IS_MANAGER (manager));
|
g_return_if_fail (GCAL_IS_MANAGER (manager));
|
||||||
g_return_if_fail (E_IS_SOURCE (source));
|
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);
|
selectable = e_source_get_extension (source, E_SOURCE_EXTENSION_CALENDAR);
|
||||||
|
|
||||||
if (!is_source_enabled (source))
|
if (!is_source_enabled (source))
|
||||||
|
|||||||
@@ -1785,7 +1785,6 @@ gcal_year_view_component_added (ECalDataModelSubscriber *subscriber,
|
|||||||
GDateTime *event_start, *event_end;
|
GDateTime *event_start, *event_end;
|
||||||
GcalEvent *event;
|
GcalEvent *event;
|
||||||
GError *error;
|
GError *error;
|
||||||
GList *l;
|
|
||||||
guint i, start_month, end_month;
|
guint i, start_month, end_month;
|
||||||
|
|
||||||
error = NULL;
|
error = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user