Browse files

Removed unneeded variables

  • Loading branch information...
1 parent 88df618 commit d0939ecce108402356ee0bd2efb44b9371852aea @Smotko committed Dec 2, 2011
Showing with 3 additions and 12 deletions.
  1. +3 −12 extension.js
View
15 extension.js
@@ -20,13 +20,10 @@ function injectToFunction(parent, name, func) {
return origin;
}
-let winInjections, workspaceInjections, workViewInjections, createdActors, connectedSignals;
+let workViewInjections, connectedSignals;
function resetState() {
- winInjections = { };
- workspaceInjections = { };
workViewInjections = { };
- createdActors = [ ];
connectedSignals = [ ];
}
@@ -74,19 +71,13 @@ function removeInjection(object, injection, name) {
}
function disable() {
- for (i in workspaceInjections)
- removeInjection(Workspace.Workspace.prototype, workspaceInjections, i);
- for (i in winInjections)
- removeInjection(Workspace.WindowOverlay.prototype, winInjections, i);
- for (i in workViewInjections)
+
+for (i in workViewInjections)
removeInjection(WorkspacesView.WorkspacesView.prototype, workViewInjections, i);
for each (i in connectedSignals)
i.obj.disconnect(i.id);
- for each (i in createdActors)
- i.destroy();
-
resetState();
}

0 comments on commit d0939ec

Please sign in to comment.