[gnome-shell] app-usage: Remove unused open-window-count attribute
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] app-usage: Remove unused open-window-count attribute
- Date: Sat, 17 Nov 2018 12:09:04 +0000 (UTC)
commit c3ec813f6f58bb42f07d34af3e48f2f8f5d824f9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Apr 9 04:08:07 2012 -0300
app-usage: Remove unused open-window-count attribute
Since this has already been unused and was inaccessible, this shouldn't
matter too much.
https://bugzilla.gnome.org/show_bug.cgi?id=673767
src/shell-app-usage.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/src/shell-app-usage.c b/src/shell-app-usage.c
index 88895aa1e..3393a6746 100644
--- a/src/shell-app-usage.c
+++ b/src/shell-app-usage.c
@@ -90,8 +90,6 @@ struct _ShellAppUsage
gboolean currently_idle;
gboolean enable_monitoring;
- GSList *previously_running;
-
long watch_start_time;
ShellApp *watched_app;
@@ -588,8 +586,6 @@ idle_save_application_usage (gpointer data)
goto out;
if (!write_attribute_string (data_output, "id", id, &error))
goto out;
- if (!write_attribute_uint (data_output, "open-window-count", shell_app_get_n_windows (app), &error))
- goto out;
if (!write_attribute_double (data_output, "score", usage->score, &error))
goto out;
if (!write_attribute_uint (data_output, "last-seen", usage->last_seen, &error))
@@ -661,14 +657,7 @@ shell_app_usage_start_element_handler (GMarkupParseContext *context,
for (attribute = attribute_names, value = attribute_values; *attribute; attribute++, value++)
{
- if (strcmp (*attribute, "open-window-count") == 0)
- {
- guint count = strtoul (*value, NULL, 10);
- if (count > 0)
- self->previously_running = g_slist_prepend (self->previously_running,
- g_strdup (appid));
- }
- else if (strcmp (*attribute, "score") == 0)
+ if (strcmp (*attribute, "score") == 0)
{
usage->score = g_ascii_strtod (*value, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]