background: Remove a couple of unused variables

Nothing uses these.

https://bugzilla.gnome.org/show_bug.cgi?id=777934
This commit is contained in:
Rui Matos 2017-01-30 13:28:16 +01:00
parent 5e66ac2674
commit 9f6f48025d

View File

@ -142,7 +142,6 @@ const BackgroundCache = new Lang.Class({
Name: 'BackgroundCache', Name: 'BackgroundCache',
_init: function() { _init: function() {
this._pendingFileLoads = [];
this._fileMonitors = {}; this._fileMonitors = {};
this._backgroundSources = {}; this._backgroundSources = {};
this._animations = {}; this._animations = {};
@ -377,11 +376,9 @@ const Background = new Lang.Class({
let cache = Meta.BackgroundImageCache.get_default(); let cache = Meta.BackgroundImageCache.get_default();
let numPendingImages = files.length; let numPendingImages = files.length;
let images = [];
for (let i = 0; i < files.length; i++) { for (let i = 0; i < files.length; i++) {
this._watchFile(files[i]); this._watchFile(files[i]);
let image = cache.load(files[i]); let image = cache.load(files[i]);
images.push(image);
if (image.is_loaded()) { if (image.is_loaded()) {
numPendingImages--; numPendingImages--;
if (numPendingImages == 0) if (numPendingImages == 0)