mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Remove unused atom.getVersion method
This commit is contained in:
committed by
Corey Johnson & Nathan Sobo
parent
6d50d05336
commit
068e656627
@@ -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'
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user