Remove unused atom.getVersion method

This commit is contained in:
probablycorey
2013-08-17 11:20:05 -07:00
committed by Corey Johnson & Nathan Sobo
parent 6d50d05336
commit 068e656627
3 changed files with 0 additions and 13 deletions

View File

@@ -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'

View File

@@ -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)

View File

@@ -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?