From 532a8d3e9794c9bc0f639b40f98eed0049b70757 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 27 Feb 2019 19:01:04 +0100 Subject: Improve performance by removing unused assignments --- baobab/src/baobab-chart.c | 2 -- baobab/src/baobab-utils.c | 7 ------- 2 files changed, 9 deletions(-) (limited to 'baobab') diff --git a/baobab/src/baobab-chart.c b/baobab/src/baobab-chart.c index c84c14b1..adaf76d9 100644 --- a/baobab/src/baobab-chart.c +++ b/baobab/src/baobab-chart.c @@ -984,14 +984,12 @@ baobab_chart_set_item_highlight (GtkWidget *chart, { BaobabChartItem *item; BaobabChartPrivate *priv; - BaobabChartClass *class; if (node == NULL) return; item = (BaobabChartItem *) node->data; priv = BAOBAB_CHART_GET_PRIVATE (chart); - class = BAOBAB_CHART_GET_CLASS (chart); if (highlighted) priv->highlighted_item = node; diff --git a/baobab/src/baobab-utils.c b/baobab/src/baobab-utils.c index fb68924b..b7539a93 100644 --- a/baobab/src/baobab-utils.c +++ b/baobab/src/baobab-utils.c @@ -381,9 +381,7 @@ open_file_with_application (GFile *file) GAppInfo *application; gchar *primary; GFileInfo *info; - gchar *uri_scheme; const char *content; - gboolean local = FALSE; info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, @@ -392,9 +390,6 @@ open_file_with_application (GFile *file) NULL); if (!info) return; - uri_scheme = g_file_get_uri_scheme (file); - if (g_ascii_strcasecmp(uri_scheme,"file") == 0) local = TRUE; - content = g_file_info_get_content_type (info); application = g_app_info_get_default_for_type (content, TRUE); @@ -420,8 +415,6 @@ open_file_with_application (GFile *file) g_free (uri); } - g_free (uri_scheme); - if (application) g_object_unref (application); -- cgit v1.2.1