TextEditor: Remove unused member functions from RefactoringChanges

Change-Id: I7e301fcf7be7690e88d9b31e60cf900660336a07
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2023-11-16 13:17:07 +01:00
parent 20bc29face
commit 4dc0cf076b
2 changed files with 0 additions and 17 deletions

View File

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

View File

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