From 6b955b12cff18319aa801d21bfcea309eedec539 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Fri, 14 Mar 2014 11:28:31 -0700 Subject: Remove manual garbage collection It's not necessary anymore if we patch GJS so that the garbage collection runs at reasonable intervals. [endlessm/eos-shell#2026] --- wikipedia/views/domain_wiki_view.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/wikipedia/views/domain_wiki_view.js b/wikipedia/views/domain_wiki_view.js index 7483767..a2f7419 100644 --- a/wikipedia/views/domain_wiki_view.js +++ b/wikipedia/views/domain_wiki_view.js @@ -1,6 +1,5 @@ const EndlessWikipedia = imports.wikipedia.EndlessWikipedia; const Lang = imports.lang; -const System = imports.system; const GObject = imports.gi.GObject; const Gtk = imports.gi.Gtk; const Gdk = imports.gi.Gdk; @@ -57,16 +56,6 @@ const DomainWikiView = new Lang.Class({ }) this._window.show_all(); - - // A temporary measure to prevent memory usage from blowing up. The app - // will sometimes allocate pixbufs as part of its draw function and gjs - // will not cleanup unused pixbufs unless we force it to. - this._window.connect_after("draw", function () { - Gdk.threads_add_idle(GLib.PRIORITY_LOW, function () { - System.gc(); - return false; - }); - }); }, create_front_page: function(){ -- cgit v1.2.3