From 068e656627821ff1db2989b9decadaca0704194b Mon Sep 17 00:00:00 2001 From: probablycorey Date: Sat, 17 Aug 2013 11:20:05 -0700 Subject: [PATCH] Remove unused atom.getVersion method --- spec/atom-spec.coffee | 4 ---- src/atom-application.coffee | 3 --- src/atom.coffee | 6 ------ 3 files changed, 13 deletions(-) diff --git a/spec/atom-spec.coffee b/spec/atom-spec.coffee index 268691dde..b7fbd91a6 100644 --- a/spec/atom-spec.coffee +++ b/spec/atom-spec.coffee @@ -277,7 +277,3 @@ describe "the `atom` global", -> atom.activatePackage('ruby-tmbundle', sync: true) atom.deactivatePackage('ruby-tmbundle') expect(syntax.getProperty(['.source.ruby'], 'editor.commentStart')).toBeUndefined() - - describe ".getVersion", -> - it "returns the current version number", -> - expect(typeof atom.getVersion()).toBe 'string' diff --git a/src/atom-application.coffee b/src/atom-application.coffee index 602b4ed23..9076d4668 100644 --- a/src/atom-application.coffee +++ b/src/atom-application.coffee @@ -116,9 +116,6 @@ class AtomApplication else @promptForPath() - ipc.on 'get-version', (event) => - event.result = @version - ipc.once 'keymap-loaded', (processId, routingId, keyBindingsByCommand) => @applicationMenu.update(keyBindingsByCommand) diff --git a/src/atom.coffee b/src/atom.coffee index a81d581cc..2ff7353ff 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -257,9 +257,3 @@ window.atom = require userInitScriptPath if fsUtils.isFileSync(userInitScriptPath) catch error console.error "Failed to load `#{userInitScriptPath}`", error.stack, error - - getVersion: -> - ipc.sendChannelSync 'get-version' - - isDevMode: -> - @getLoadSettings().devMode?