Skip to content

Commit 1f395a7

Browse files
author
Nathan Sobo
committed
Remove mentions of benchmarks from the build, command palette
1 parent d5cb555 commit 1f395a7

File tree

4 files changed

+0
-21
lines changed

4 files changed

+0
-21
lines changed

.coffeelintignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
spec/fixtures
2-
benchmark/fixtures

build/tasks/build-task.coffee

-6
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ module.exports = (grunt) ->
3737
packageNames = []
3838
packageDirectories = []
3939
nonPackageDirectories = [
40-
'benchmark'
4140
'dot-atom'
4241
'vendor'
4342
]
@@ -146,19 +145,14 @@ module.exports = (grunt) ->
146145

147146
testFolderPattern = new RegExp("#{_.escapeRegExp(path.sep)}_*te?sts?_*#{_.escapeRegExp(path.sep)}")
148147
exampleFolderPattern = new RegExp("#{_.escapeRegExp(path.sep)}examples?#{_.escapeRegExp(path.sep)}")
149-
benchmarkFolderPattern = new RegExp("#{_.escapeRegExp(path.sep)}benchmarks?#{_.escapeRegExp(path.sep)}")
150148

151149
nodeModulesFilter = new RegExp(ignoredPaths.join('|'))
152150
filterNodeModule = (pathToCopy) ->
153-
return true if benchmarkFolderPattern.test(pathToCopy)
154-
155151
pathToCopy = path.resolve(pathToCopy)
156152
nodeModulesFilter.test(pathToCopy) or testFolderPattern.test(pathToCopy) or exampleFolderPattern.test(pathToCopy)
157153

158154
packageFilter = new RegExp("(#{ignoredPaths.join('|')})|(.+\\.(cson|coffee)$)")
159155
filterPackage = (pathToCopy) ->
160-
return true if benchmarkFolderPattern.test(pathToCopy)
161-
162156
pathToCopy = path.resolve(pathToCopy)
163157
packageFilter.test(pathToCopy) or testFolderPattern.test(pathToCopy) or exampleFolderPattern.test(pathToCopy)
164158

src/browser/atom-application.coffee

-13
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ class AtomApplication
162162
safeMode: @focusedWindow()?.safeMode
163163

164164
@on 'application:run-all-specs', -> @runSpecs(exitWhenDone: false, resourcePath: @devResourcePath, safeMode: @focusedWindow()?.safeMode)
165-
@on 'application:run-benchmarks', -> @runBenchmarks()
166165
@on 'application:quit', -> app.quit()
167166
@on 'application:new-window', -> @openPath(_.extend(windowDimensions: @focusedWindow()?.getDimensions(), getLoadSettings()))
168167
@on 'application:new-file', -> (@focusedWindow() ? this).openPath()
@@ -505,18 +504,6 @@ class AtomApplication
505504
safeMode ?= false
506505
new AtomWindow({bootstrapScript, resourcePath, exitWhenDone, isSpec, devMode, specDirectory, logFile, safeMode})
507506

508-
runBenchmarks: ({exitWhenDone, specDirectory}={}) ->
509-
try
510-
bootstrapScript = require.resolve(path.resolve(@devResourcePath, 'benchmark', 'benchmark-bootstrap'))
511-
catch error
512-
bootstrapScript = require.resolve(path.resolve(__dirname, '..', '..', 'benchmark', 'benchmark-bootstrap'))
513-
514-
specDirectory ?= path.dirname(bootstrapScript)
515-
516-
isSpec = true
517-
devMode = true
518-
new AtomWindow({bootstrapScript, @resourcePath, exitWhenDone, isSpec, specDirectory, devMode})
519-
520507
locationForPathToOpen: (pathToOpen, executedFrom='') ->
521508
return {pathToOpen} unless pathToOpen
522509

src/workspace-element.coffee

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ atom.commands.add 'atom-workspace',
108108
'window:reset-font-size': -> @getModel().resetFontSize()
109109
'application:about': -> ipc.send('command', 'application:about')
110110
'application:run-all-specs': -> ipc.send('command', 'application:run-all-specs')
111-
'application:run-benchmarks': -> ipc.send('command', 'application:run-benchmarks')
112111
'application:show-preferences': -> ipc.send('command', 'application:show-settings')
113112
'application:show-settings': -> ipc.send('command', 'application:show-settings')
114113
'application:quit': -> ipc.send('command', 'application:quit')

0 commit comments

Comments
 (0)