diff --git a/src/plugins/texteditor/refactoringchanges.cpp b/src/plugins/texteditor/refactoringchanges.cpp index 1398d55bcaa..8a14376f87c 100644 --- a/src/plugins/texteditor/refactoringchanges.cpp +++ b/src/plugins/texteditor/refactoringchanges.cpp @@ -87,16 +87,6 @@ bool RefactoringChanges::createFile(const FilePath &filePath, return true; } -bool RefactoringChanges::removeFile(const FilePath &filePath) const -{ - if (!filePath.exists()) - return false; - - // ### implement! - qWarning() << "RefactoringChanges::removeFile is not implemented"; - return true; -} - TextEditorWidget *RefactoringChanges::openEditor(const FilePath &filePath, bool activate, int line, @@ -116,11 +106,6 @@ TextEditorWidget *RefactoringChanges::openEditor(const FilePath &filePath, return TextEditorWidget::fromEditor(editor); } -RefactoringFilePtr RefactoringChanges::file(TextEditorWidget *editor) -{ - return RefactoringFilePtr(new RefactoringFile(editor)); -} - RefactoringFilePtr RefactoringChanges::file(const FilePath &filePath) const { return RefactoringFilePtr(new RefactoringFile(filePath, m_data)); diff --git a/src/plugins/texteditor/refactoringchanges.h b/src/plugins/texteditor/refactoringchanges.h index f657095287a..9b8a322e973 100644 --- a/src/plugins/texteditor/refactoringchanges.h +++ b/src/plugins/texteditor/refactoringchanges.h @@ -110,13 +110,11 @@ public: explicit RefactoringChanges(RefactoringChangesData *data = nullptr); virtual ~RefactoringChanges(); - static RefactoringFilePtr file(TextEditorWidget *editor); RefactoringFilePtr file(const Utils::FilePath &filePath) const; bool createFile(const Utils::FilePath &filePath, const QString &contents, bool reindent = true, bool openEditor = true) const; - bool removeFile(const Utils::FilePath &filePath) const; protected: static TextEditorWidget *openEditor(const Utils::FilePath &filePath,