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:
Christian Kandeler
2023-11-17 13:40:59 +01:00
parent 27084b1884
commit db71c461de
2 changed files with 0 additions and 3 deletions

View File

@@ -68,8 +68,6 @@ QmlJSRefactoringFile::QmlJSRefactoringFile(TextEditor::TextEditorWidget *editor,
: RefactoringFile(editor) : RefactoringFile(editor)
, m_qmljsDocument(document) , 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 Document::Ptr QmlJSRefactoringFile::qmljsDocument() const

View File

@@ -70,7 +70,6 @@ protected:
RefactoringFile(const Utils::FilePath &filePath); RefactoringFile(const Utils::FilePath &filePath);
void invalidate() { m_filePath.clear(); } void invalidate() { m_filePath.clear(); }
void setFilePath(const Utils::FilePath &filePath) { m_filePath = filePath; } // FIXME: Really necessary?
void enableFormatting() { m_formattingEnabled = true; } void enableFormatting() { m_formattingEnabled = true; }
private: private: