mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Remove unused originalFontSize
This commit is contained in:
@@ -363,7 +363,6 @@ module.exports = class Workspace extends Model {
|
||||
})
|
||||
};
|
||||
|
||||
this.originalFontSize = null;
|
||||
this.openers = [];
|
||||
this.destroyedItemURIs = [];
|
||||
if (this.element) {
|
||||
@@ -374,13 +373,10 @@ module.exports = class Workspace extends Model {
|
||||
}
|
||||
|
||||
initialize() {
|
||||
this.originalFontSize = this.config.get('editor.fontSize');
|
||||
this.defaultFontSize = this.config.get('editor.defaultFontSize');
|
||||
this.project.onDidChangePaths(this.updateWindowTitle);
|
||||
this.subscribeToAddedItems();
|
||||
this.subscribeToMovedItems();
|
||||
this.subscribeToDockToggling();
|
||||
this.subscribeToFontSize();
|
||||
}
|
||||
|
||||
consumeServices({ serviceHub }) {
|
||||
@@ -1748,16 +1744,12 @@ module.exports = class Workspace extends Model {
|
||||
|
||||
// Restore to the window's default editor font size.
|
||||
resetFontSize() {
|
||||
if (this.defaultFontSize) {
|
||||
this.config.set('editor.fontSize', this.defaultFontSize);
|
||||
}
|
||||
this.config.set(
|
||||
'editor.fontSize',
|
||||
this.config.get('editor.defaultFontSize')
|
||||
);
|
||||
}
|
||||
|
||||
subscribeToFontSize() {
|
||||
return this.config.onDidChange('editor.defaultFontSize', () => {
|
||||
this.defaultFontSize = this.config.get('editor.defaultFontSize');
|
||||
});
|
||||
}
|
||||
// Removes the item's uri from the list of potential items to reopen.
|
||||
itemOpened(item) {
|
||||
let uri;
|
||||
|
||||
Reference in New Issue
Block a user