From 6683d42b636619e02e2bcf98923a2fdbf44bd95b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 31 May 2015 17:07:13 +0300 Subject: Move functions getColor, getIdByChar from palette to theme and userpalette. --- src/gui/palette.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/gui/palette.cpp') diff --git a/src/gui/palette.cpp b/src/gui/palette.cpp index 88de9d5d0..757a61a23 100644 --- a/src/gui/palette.cpp +++ b/src/gui/palette.cpp @@ -72,19 +72,6 @@ const Color& Palette::getCharColor(const signed char c, bool &valid) const return BLACK; } -int Palette::getIdByChar(const signed char c, bool &valid) const -{ - const CharColors::const_iterator it = mCharColors.find(c); - if (it != mCharColors.end()) - { - valid = true; - return (*it).second; - } - - valid = false; - return 0; -} - void Palette::advanceGradients() { FOR_EACH (Palettes::const_iterator, it, mInstances) -- cgit v1.2.3-70-g09d2