forked from qt-creator/qt-creator
TextEditor: Remove unused member functions from RefactoringChanges
Change-Id: I7e301fcf7be7690e88d9b31e60cf900660336a07 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -87,16 +87,6 @@ bool RefactoringChanges::createFile(const FilePath &filePath,
|
|||||||
return true;
|
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,
|
TextEditorWidget *RefactoringChanges::openEditor(const FilePath &filePath,
|
||||||
bool activate,
|
bool activate,
|
||||||
int line,
|
int line,
|
||||||
@@ -116,11 +106,6 @@ TextEditorWidget *RefactoringChanges::openEditor(const FilePath &filePath,
|
|||||||
return TextEditorWidget::fromEditor(editor);
|
return TextEditorWidget::fromEditor(editor);
|
||||||
}
|
}
|
||||||
|
|
||||||
RefactoringFilePtr RefactoringChanges::file(TextEditorWidget *editor)
|
|
||||||
{
|
|
||||||
return RefactoringFilePtr(new RefactoringFile(editor));
|
|
||||||
}
|
|
||||||
|
|
||||||
RefactoringFilePtr RefactoringChanges::file(const FilePath &filePath) const
|
RefactoringFilePtr RefactoringChanges::file(const FilePath &filePath) const
|
||||||
{
|
{
|
||||||
return RefactoringFilePtr(new RefactoringFile(filePath, m_data));
|
return RefactoringFilePtr(new RefactoringFile(filePath, m_data));
|
||||||
|
|||||||
@@ -110,13 +110,11 @@ public:
|
|||||||
explicit RefactoringChanges(RefactoringChangesData *data = nullptr);
|
explicit RefactoringChanges(RefactoringChangesData *data = nullptr);
|
||||||
virtual ~RefactoringChanges();
|
virtual ~RefactoringChanges();
|
||||||
|
|
||||||
static RefactoringFilePtr file(TextEditorWidget *editor);
|
|
||||||
RefactoringFilePtr file(const Utils::FilePath &filePath) const;
|
RefactoringFilePtr file(const Utils::FilePath &filePath) const;
|
||||||
bool createFile(const Utils::FilePath &filePath,
|
bool createFile(const Utils::FilePath &filePath,
|
||||||
const QString &contents,
|
const QString &contents,
|
||||||
bool reindent = true,
|
bool reindent = true,
|
||||||
bool openEditor = true) const;
|
bool openEditor = true) const;
|
||||||
bool removeFile(const Utils::FilePath &filePath) const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static TextEditorWidget *openEditor(const Utils::FilePath &filePath,
|
static TextEditorWidget *openEditor(const Utils::FilePath &filePath,
|
||||||
|
|||||||
Reference in New Issue
Block a user