summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-15 14:32:54 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-18 13:21:19 (GMT)
commit0f96ef00cbe8dd82cee32f61f9da43e66e42f446 (patch)
treefa6281a32902474c86c410a992630ca9ef001381 /Source
parent563bf9dd8a207e04697a92d8bcd239f52400b355 (diff)
downloadCMake-0f96ef00cbe8dd82cee32f61f9da43e66e42f446.zip
CMake-0f96ef00cbe8dd82cee32f61f9da43e66e42f446.tar.gz
CMake-0f96ef00cbe8dd82cee32f61f9da43e66e42f446.tar.bz2
Remove unused cmake::IssueMessage overload
All callers now pass a full backtrace so we do not need the alternative that takes a cmListFileContext directly. Drop this overload to remove the code duplication.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx35
-rw-r--r--Source/cmake.h3
2 files changed, 0 insertions, 38 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index dcc95af..8e3380f 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2785,41 +2785,6 @@ void cmake::IssueMessage(cmake::MessageType t, std::string const& text,
}
//----------------------------------------------------------------------------
-void cmake::IssueMessage(cmake::MessageType t, std::string const& text,
- cmListFileContext const& lfc,
- bool force)
-{
- if (!force)
- {
- // override the message type, if needed, for warnings and errors
- cmake::MessageType override = this->ConvertMessageType(t);
- if (override != t)
- {
- t = override;
- force = true;
- }
- }
-
- if (!force && !this->IsMessageTypeVisible(t))
- {
- return;
- }
-
- std::ostringstream msg;
- if (!this->PrintMessagePreamble(t, msg))
- {
- return;
- }
-
- // Add the immediate context.
- msg << (lfc.Line ? " at " : " in ") << lfc;
-
- printMessageText(msg, text);
-
- displayMessage(t, msg);
-}
-
-//----------------------------------------------------------------------------
std::vector<std::string> cmake::GetDebugConfigs()
{
std::vector<std::string> configs;
diff --git a/Source/cmake.h b/Source/cmake.h
index 8496705..8644dda 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -358,9 +358,6 @@ class cmake
void IssueMessage(cmake::MessageType t, std::string const& text,
cmListFileBacktrace const& backtrace = cmListFileBacktrace(),
bool force = false);
- void IssueMessage(cmake::MessageType t, std::string const& text,
- cmListFileContext const& lfc,
- bool force = false);
///! run the --build option
int Build(const std::string& dir,