]> git.lyx.org Git - features.git/commitdiff
* src/LColor.[Ch]
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 22 Dec 2006 10:23:25 +0000 (10:23 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 22 Dec 2006 10:23:25 +0000 (10:23 +0000)
(LColor::getFromGUIName): delete, since it is unused, broken and
not easy to implement correctly

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16378 a592a061-630c-0410-9148-cb99ea01b6c8

src/LColor.C
src/LColor.h

index 1288b1d9d3f1c201741ed43ed2b806dad29a800d..5923d26ce8b83df3a5ac17933eb653a179b6e771 100644 (file)
@@ -250,20 +250,6 @@ bool LColor::setColor(string const & lyxname, string const &x11name)
 }
 
 
-LColor::color LColor::getFromGUIName(docstring const & guiname) const
-{
-       Pimpl::InfoTab::const_iterator it = pimpl_->infotab.begin();
-       Pimpl::InfoTab::const_iterator end = pimpl_->infotab.end();
-       for (; it != end; ++it) {
-               // FIXME comparison of translated strings is problematic,
-               // and compare_ascii_no_case is probably not correct
-               if (!compare_ascii_no_case(_(it->second.guiname), guiname))
-                       return it->first;
-       }
-       return LColor::inherit;
-}
-
-
 void LColor::addColor(LColor::color c, string const & lyxname) const
 {
        ColorEntry ce = { c, "", "", "", lyxname.c_str() };
index e76de4536061005c482198480030ab9949c9cb5b..d7ca132759fc7d485e5397883d1463fcd776dc74 100644 (file)
@@ -215,8 +215,6 @@ public:
        /// Get the LyX name of \c color.
        std::string const getLyXName(LColor::color c) const;
 
-       /// \returns the LColor::color associated with the GUI name.
-       LColor::color getFromGUIName(docstring const & guiname) const;
        /// \returns the LColor::color associated with the LyX name.
        LColor::color getFromLyXName(std::string const & lyxname) const;
        /// \returns the LColor::color associated with the LaTeX name.