summaryrefslogtreecommitdiff
path: root/src/utility
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2014-11-09 00:41:09 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2014-11-09 00:42:10 +0100
commit448c87f8505e64cb93f980d3fa1fd41394afa007 (patch)
tree9c12a2cc7b694cfc85863bd23be52e67f792d313 /src/utility
parent5ff553005dbf88d89c759cade5195ed4245ac51a (diff)
window: add support for textual representation of background color
Diffstat (limited to 'src/utility')
-rw-r--r--src/utility/type_conversions.cpp22
-rw-r--r--src/utility/type_conversions.h1
2 files changed, 0 insertions, 23 deletions
diff --git a/src/utility/type_conversions.cpp b/src/utility/type_conversions.cpp
index 8e922bad..c20943f4 100644
--- a/src/utility/type_conversions.cpp
+++ b/src/utility/type_conversions.cpp
@@ -50,28 +50,6 @@ NC::Color charToColor(char c)
}
}
-NC::Color stringToColor(const std::string &color)
-{
- NC::Color result = NC::Color::Default;
- if (color == "black")
- result = NC::Color::Black;
- else if (color == "red")
- result = NC::Color::Red;
- else if (color == "green")
- result = NC::Color::Green;
- else if (color == "yellow")
- result = NC::Color::Yellow;
- else if (color == "blue")
- result = NC::Color::Blue;
- else if (color == "magenta")
- result = NC::Color::Magenta;
- else if (color == "cyan")
- result = NC::Color::Cyan;
- else if (color == "white")
- result = NC::Color::White;
- return result;
-}
-
NC::Border stringToBorder(const std::string &border)
{
NC::Border result = NC::Border::None;
diff --git a/src/utility/type_conversions.h b/src/utility/type_conversions.h
index 7f072a5a..bf1f4406 100644
--- a/src/utility/type_conversions.h
+++ b/src/utility/type_conversions.h
@@ -28,7 +28,6 @@
NC::Color charToColor(char c);
-NC::Color stringToColor(const std::string &color);
NC::Border stringToBorder(const std::string &border);
std::string tagTypeToString(mpd_tag_type tag);