From 96e6403573e1a1cdaeeb9984d3efd7707f39b27c Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Fri, 19 Apr 2019 17:36:33 -0400 Subject: [PATCH] Remove unused forceAddToWindow --- spec/atom-environment-spec.js | 2 +- spec/main-process/atom-window.test.js | 6 ++---- src/main-process/atom-application.js | 2 -- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/spec/atom-environment-spec.js b/spec/atom-environment-spec.js index 038aa5e54..ea30eab99 100644 --- a/spec/atom-environment-spec.js +++ b/spec/atom-environment-spec.js @@ -880,7 +880,7 @@ describe('AtomEnvironment', () => { it('does not attempt to restore the project state, instead adding the project paths', async () => { const pathToOpen = path.join(__dirname, 'fixtures') - await atom.openLocations([{ pathToOpen, exists: true, isDirectory: true, forceAddToWindow: true }]) + await atom.openLocations([{ pathToOpen, exists: true, isDirectory: true }]) expect(atom.attemptRestoreProjectStateForPaths).not.toHaveBeenCalled() expect(atom.project.getPaths()).toEqual([__dirname, pathToOpen]) }) diff --git a/spec/main-process/atom-window.test.js b/spec/main-process/atom-window.test.js index af5442fe7..c65b91546 100644 --- a/spec/main-process/atom-window.test.js +++ b/spec/main-process/atom-window.test.js @@ -177,16 +177,14 @@ describe('AtomWindow', function () { pathToOpen: 'file.txt', initialLine: 1, initialColumn: 2, - mustBeDirectory: false, - forceAddToWindow: false, + isDirectory: false, hasWaitSession: false }, { pathToOpen: '/directory', initialLine: null, initialColumn: null, - mustBeDirectory: true, - forceAddToWindow: false, + isDirectory: true, hasWaitSession: false } ] diff --git a/src/main-process/atom-application.js b/src/main-process/atom-application.js index 7267d8c73..e622816f5 100644 --- a/src/main-process/atom-application.js +++ b/src/main-process/atom-application.js @@ -972,7 +972,6 @@ class AtomApplication extends EventEmitter { const locationsToOpen = await Promise.all( pathsToOpen.map(pathToOpen => this.parsePathToOpen(pathToOpen, executedFrom, { - forceAddToWindow: addToLastWindow, hasWaitSession: pidToKillWhenClosed != null })) ) @@ -984,7 +983,6 @@ class AtomApplication extends EventEmitter { initialColumn: null, exists: true, isDirectory: true, - forceAddToWindow: addToLastWindow, hasWaitSession: pidToKillWhenClosed != null }) }