diff --git a/src/plugins/qmljstools/qmljsrefactoringchanges.cpp b/src/plugins/qmljstools/qmljsrefactoringchanges.cpp index 66ce4102b43..ddc2ca25c83 100644 --- a/src/plugins/qmljstools/qmljsrefactoringchanges.cpp +++ b/src/plugins/qmljstools/qmljsrefactoringchanges.cpp @@ -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 diff --git a/src/plugins/texteditor/refactoringchanges.h b/src/plugins/texteditor/refactoringchanges.h index 20de8dad87c..5155f162fd6 100644 --- a/src/plugins/texteditor/refactoringchanges.h +++ b/src/plugins/texteditor/refactoringchanges.h @@ -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: