From 234adb8748aa4adbb510e9e5e8e006388b3b7d0b Mon Sep 17 00:00:00 2001 From: Zachinquarantine Date: Mon, 20 Sep 2021 11:52:48 -0400 Subject: [PATCH] Remove deprecated code strings (#22952) Remove deprecated code strings --- packages/one-dark-ui/lib/main.js | 6 ------ packages/one-light-ui/lib/main.js | 6 ------ src/main-process/atom-application.js | 10 ---------- vendor/jasmine.js | 10 ---------- 4 files changed, 32 deletions(-) diff --git a/packages/one-dark-ui/lib/main.js b/packages/one-dark-ui/lib/main.js index 664010616..3b3850d97 100644 --- a/packages/one-dark-ui/lib/main.js +++ b/packages/one-dark-ui/lib/main.js @@ -8,12 +8,6 @@ module.exports = { atom.config.observe(`${themeName}.tabCloseButton`, setTabCloseButton); atom.config.observe(`${themeName}.hideDockButtons`, setHideDockButtons); atom.config.observe(`${themeName}.stickyHeaders`, setStickyHeaders); - - // DEPRECATED: This can be removed at some point (added in Atom 1.17/1.18ish) - // It removes `layoutMode` - if (atom.config.get(`${themeName}.layoutMode`)) { - atom.config.unset(`${themeName}.layoutMode`); - } }, deactivate() { diff --git a/packages/one-light-ui/lib/main.js b/packages/one-light-ui/lib/main.js index f8a6a6d49..68f545745 100644 --- a/packages/one-light-ui/lib/main.js +++ b/packages/one-light-ui/lib/main.js @@ -8,12 +8,6 @@ module.exports = { atom.config.observe(`${themeName}.tabCloseButton`, setTabCloseButton); atom.config.observe(`${themeName}.hideDockButtons`, setHideDockButtons); atom.config.observe(`${themeName}.stickyHeaders`, setStickyHeaders); - - // DEPRECATED: This can be removed at some point (added in Atom 1.17/1.18ish) - // It removes `layoutMode` - if (atom.config.get(`${themeName}.layoutMode`)) { - atom.config.unset(`${themeName}.layoutMode`); - } }, deactivate() { diff --git a/src/main-process/atom-application.js b/src/main-process/atom-application.js index c969e5f55..cea5f070b 100644 --- a/src/main-process/atom-application.js +++ b/src/main-process/atom-application.js @@ -249,16 +249,6 @@ module.exports = class AtomApplication extends EventEmitter { global.atomApplication = this; - // DEPRECATED: This can be removed at some point (added in 1.13) - // It converts `useCustomTitleBar: true` to `titleBar: "custom"` - if ( - process.platform === 'darwin' && - this.config.get('core.useCustomTitleBar') - ) { - this.config.unset('core.useCustomTitleBar'); - this.config.set('core.titleBar', 'custom'); - } - this.applicationMenu = new ApplicationMenu( this.version, this.autoUpdateManager diff --git a/vendor/jasmine.js b/vendor/jasmine.js index 2cec4bf76..716fbeb7e 100644 --- a/vendor/jasmine.js +++ b/vendor/jasmine.js @@ -1190,16 +1190,6 @@ jasmine.Matchers = function(env, actual, spec, opt_isNot) { this.reportWasCalled_ = false; }; -// todo: @deprecated as of Jasmine 0.11, remove soon [xw] -jasmine.Matchers.pp = function(str) { - throw new Error("jasmine.Matchers.pp() is no longer supported, please use jasmine.pp() instead!"); -}; - -// todo: @deprecated Deprecated as of Jasmine 0.10. Rewrite your custom matchers to return true or false. [xw] -jasmine.Matchers.prototype.report = function(result, failing_message, details) { - throw new Error("As of jasmine 0.11, custom matchers must be implemented differently -- please see jasmine docs"); -}; - jasmine.Matchers.wrapInto_ = function(prototype, matchersClass) { for (var methodName in prototype) { if (methodName == 'report') continue;