Skip to content

Commit 234adb8

Browse files
author
Zachinquarantine
authored
Remove deprecated code strings (atom#22952)
Remove deprecated code strings
1 parent 0220902 commit 234adb8

File tree

4 files changed

+0
-32
lines changed

4 files changed

+0
-32
lines changed

packages/one-dark-ui/lib/main.js

-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ module.exports = {
88
atom.config.observe(`${themeName}.tabCloseButton`, setTabCloseButton);
99
atom.config.observe(`${themeName}.hideDockButtons`, setHideDockButtons);
1010
atom.config.observe(`${themeName}.stickyHeaders`, setStickyHeaders);
11-
12-
// DEPRECATED: This can be removed at some point (added in Atom 1.17/1.18ish)
13-
// It removes `layoutMode`
14-
if (atom.config.get(`${themeName}.layoutMode`)) {
15-
atom.config.unset(`${themeName}.layoutMode`);
16-
}
1711
},
1812

1913
deactivate() {

packages/one-light-ui/lib/main.js

-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ module.exports = {
88
atom.config.observe(`${themeName}.tabCloseButton`, setTabCloseButton);
99
atom.config.observe(`${themeName}.hideDockButtons`, setHideDockButtons);
1010
atom.config.observe(`${themeName}.stickyHeaders`, setStickyHeaders);
11-
12-
// DEPRECATED: This can be removed at some point (added in Atom 1.17/1.18ish)
13-
// It removes `layoutMode`
14-
if (atom.config.get(`${themeName}.layoutMode`)) {
15-
atom.config.unset(`${themeName}.layoutMode`);
16-
}
1711
},
1812

1913
deactivate() {

src/main-process/atom-application.js

-10
Original file line numberDiff line numberDiff line change
@@ -249,16 +249,6 @@ module.exports = class AtomApplication extends EventEmitter {
249249

250250
global.atomApplication = this;
251251

252-
// DEPRECATED: This can be removed at some point (added in 1.13)
253-
// It converts `useCustomTitleBar: true` to `titleBar: "custom"`
254-
if (
255-
process.platform === 'darwin' &&
256-
this.config.get('core.useCustomTitleBar')
257-
) {
258-
this.config.unset('core.useCustomTitleBar');
259-
this.config.set('core.titleBar', 'custom');
260-
}
261-
262252
this.applicationMenu = new ApplicationMenu(
263253
this.version,
264254
this.autoUpdateManager

vendor/jasmine.js

-10
Original file line numberDiff line numberDiff line change
@@ -1190,16 +1190,6 @@ jasmine.Matchers = function(env, actual, spec, opt_isNot) {
11901190
this.reportWasCalled_ = false;
11911191
};
11921192

1193-
// todo: @deprecated as of Jasmine 0.11, remove soon [xw]
1194-
jasmine.Matchers.pp = function(str) {
1195-
throw new Error("jasmine.Matchers.pp() is no longer supported, please use jasmine.pp() instead!");
1196-
};
1197-
1198-
// todo: @deprecated Deprecated as of Jasmine 0.10. Rewrite your custom matchers to return true or false. [xw]
1199-
jasmine.Matchers.prototype.report = function(result, failing_message, details) {
1200-
throw new Error("As of jasmine 0.11, custom matchers must be implemented differently -- please see jasmine docs");
1201-
};
1202-
12031193
jasmine.Matchers.wrapInto_ = function(prototype, matchersClass) {
12041194
for (var methodName in prototype) {
12051195
if (methodName == 'report') continue;

0 commit comments

Comments
 (0)