windowManager: Remove (un)blockAnimations()

They are no longer used, kill them.
This commit is contained in:
Florian Müllner 2014-04-24 12:11:36 +02:00
parent b8f0d0f0dc
commit 2b365627ed

View File

@ -464,8 +464,6 @@ const WindowManager = new Lang.Class({
this._dimmedWindows = []; this._dimmedWindows = [];
this._animationBlockCount = 0;
this._allowedKeybindings = {}; this._allowedKeybindings = {};
this._switchData = null; this._switchData = null;
@ -708,16 +706,8 @@ const WindowManager = new Lang.Class({
this._allowedKeybindings[name] = modes; this._allowedKeybindings[name] = modes;
}, },
blockAnimations: function() {
this._animationBlockCount++;
},
unblockAnimations: function() {
this._animationBlockCount = Math.max(0, this._animationBlockCount - 1);
},
_shouldAnimate: function() { _shouldAnimate: function() {
return !(Main.overview.visible || this._animationBlockCount > 0); return !Main.overview.visible;
}, },
_shouldAnimateActor: function(actor) { _shouldAnimateActor: function(actor) {