rm unnecessary comments

LianaHus-patch-7
Liana Husikyan 11 months ago committed by GitHub
parent 2ffff72025
commit 21907fff5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      apps/remix-ide/src/app/files/fileManager.ts

@ -560,7 +560,6 @@ class FileManager extends Plugin {
}
}
}
// TODO: Only keep `this.emit` (issue#2210)
this.emit('fileRenamed', oldName, newName, isFolder)
}
@ -577,7 +576,6 @@ class FileManager extends Plugin {
}
async closeAllFiles() {
// TODO: Only keep `this.emit` (issue#2210)
this.emit('filesAllClosed')
for (const file in this.openedFiles) {
await this.closeFile(file)
@ -588,10 +586,8 @@ class FileManager extends Plugin {
delete this.openedFiles[name]
if (!Object.keys(this.openedFiles).length) {
this._deps.config.set('currentFile', '')
// TODO: Only keep `this.emit` (issue#2210)
this.emit('noFileSelected')
}
// TODO: Only keep `this.emit` (issue#2210)
this.emit('fileClosed', name)
}
@ -694,7 +690,6 @@ class FileManager extends Plugin {
}
this.editor.discard(path)
delete this.openedFiles[path]
// TODO: Only keep `this.emit` (issue#2210)
this.emit('fileRemoved', path)
if (path === this._deps.config.get('currentFile')) {
this.openFile(this._deps.config.get('currentFile'))
@ -704,7 +699,6 @@ class FileManager extends Plugin {
async unselectCurrentFile() {
await this.saveCurrentFile()
this._deps.config.set('currentFile', '')
// TODO: Only keep `this.emit` (issue#2210)
this.emit('noFileSelected')
}
@ -742,7 +736,6 @@ class FileManager extends Plugin {
} else {
await this.editor.open(file, content)
}
// TODO: Only keep `this.emit` (issue#2210)
this.emit('currentFileChanged', file)
return true
}
@ -988,7 +981,7 @@ class FileManager extends Plugin {
/**
* Moves a file to a new folder
* @param {string} src path of the source file
* @param {string} dest path of the destrination file
* @param {string} dest path of the destination file
* @returns {void}
*/

Loading…
Cancel
Save