diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index 48fad5c8c..c4f39bbb7 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -121,8 +121,6 @@ beforeEach -> addCustomMatchers(this) afterEach -> - atom.commands.clear() - atom.packages.deactivatePackages() atom.menu.template = [] diff --git a/src/command-registry.coffee b/src/command-registry.coffee index 984a604f2..dc173dc97 100644 --- a/src/command-registry.coffee +++ b/src/command-registry.coffee @@ -178,9 +178,6 @@ class CommandRegistry break if propagationStopped currentTarget = currentTarget.parentNode - clear: -> - @listenersByCommandName = {} - class CommandListener constructor: (@selector, @callback) -> @specificity = (SpecificityCache[@selector] ?= specificity(@selector))