forked from qt-creator/qt-creator
TextEditor: Remove unneeded RefactoringFile::setFilePath()
Change-Id: Ia44642191259b83539c093d04921317b6155fdee Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -68,8 +68,6 @@ QmlJSRefactoringFile::QmlJSRefactoringFile(TextEditor::TextEditorWidget *editor,
|
||||
: RefactoringFile(editor)
|
||||
, m_qmljsDocument(document)
|
||||
{
|
||||
if (document)
|
||||
setFilePath(document->fileName()); // TODO: Is this really a different file path than in the editor?
|
||||
}
|
||||
|
||||
Document::Ptr QmlJSRefactoringFile::qmljsDocument() const
|
||||
|
||||
@@ -70,7 +70,6 @@ protected:
|
||||
RefactoringFile(const Utils::FilePath &filePath);
|
||||
|
||||
void invalidate() { m_filePath.clear(); }
|
||||
void setFilePath(const Utils::FilePath &filePath) { m_filePath = filePath; } // FIXME: Really necessary?
|
||||
void enableFormatting() { m_formattingEnabled = true; }
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user