Remove unused originalFontSize

This commit is contained in:
sadick254
2020-10-14 08:53:10 +03:00
parent 6d7322993f
commit f0f9afc474

View File

@@ -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;