From 7e919a07b6a74914d0851076afcb70c05f3746cc Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 20 Apr 2023 13:35:03 +0200 Subject: [PATCH] CMake: Remove odd but unused assignment Change-Id: I052baddc82b7bef24e656c35be1a4edd97a85007 Reviewed-by: Cristian Adam --- .../cmakeprojectmanager/3rdparty/cmake/cmListFileCache.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/3rdparty/cmake/cmListFileCache.cxx b/src/plugins/cmakeprojectmanager/3rdparty/cmake/cmListFileCache.cxx index 86175b69e16..e3ffd23cc4c 100644 --- a/src/plugins/cmakeprojectmanager/3rdparty/cmake/cmListFileCache.cxx +++ b/src/plugins/cmakeprojectmanager/3rdparty/cmake/cmListFileCache.cxx @@ -23,7 +23,6 @@ struct cmListFileParser bool AddArgument(cmListFileLexer_Token* token, cmListFileArgument::Delimiter delim); cmListFile* ListFile; - const char* FileName = nullptr; cmListFileLexer* Lexer; std::string FunctionName; long FunctionLine; @@ -57,10 +56,8 @@ void cmListFileParser::IssueError(const std::string& text) const } bool cmListFileParser::ParseString(const std::string &str, - const std::string &virtual_filename) + const std::string &/*virtual_filename*/) { - this->FileName = virtual_filename.c_str(); - if (!cmListFileLexer_SetString(this->Lexer, str.c_str(), (int)str.size())) { this->IssueError("cmListFileCache: cannot allocate buffer."); return false;