summaryrefslogtreecommitdiffstats
path: root/Source/cmDefinitions.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-07-19 08:38:54 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-07-24 09:11:25 (GMT)
commit9b5cc4253135c7811936b05525e013e04a390d02 (patch)
tree08509cdff27333c66e26d8a55a171aeb7c1ebdc1 /Source/cmDefinitions.h
parente268840c0a5db59f97c0fbc77aaae621520b83a3 (diff)
downloadCMake-9b5cc4253135c7811936b05525e013e04a390d02.zip
CMake-9b5cc4253135c7811936b05525e013e04a390d02.tar.gz
CMake-9b5cc4253135c7811936b05525e013e04a390d02.tar.bz2
cmDefinitions: Remove const char* based Set method
- Removes `cmDefinitions::Set` method overload that takes a `const char*` value argument. - Updates calls to `cmDefinitions::Set` to use the `cm::string_view` based version instead.
Diffstat (limited to 'Source/cmDefinitions.h')
-rw-r--r--Source/cmDefinitions.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/cmDefinitions.h b/Source/cmDefinitions.h
index b6a08bc..4d8810a 100644
--- a/Source/cmDefinitions.h
+++ b/Source/cmDefinitions.h
@@ -32,16 +32,6 @@ public:
static bool HasKey(const std::string& key, StackIter begin, StackIter end);
- /** Set (or unset if null) a value associated with a key. */
- void Set(const std::string& key, const char* value)
- {
- if (value) {
- this->Set(key, cm::string_view(value));
- } else {
- this->Unset(key);
- }
- }
-
/** Set a value associated with a key. */
void Set(const std::string& key, cm::string_view value);