]> git.lyx.org Git - features.git/commitdiff
Remove cruft
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 8 May 2013 13:12:42 +0000 (15:12 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 8 May 2013 13:12:42 +0000 (15:12 +0200)
src/support/Messages.cpp

index 4e58a873fd23ac15e60932b29a5e375a376e0d19..ea6ec0dc57d353c597c3994e93262d856c75fefe 100644 (file)
@@ -243,51 +243,3 @@ bool Messages::available(string const & /* c */)
 } // namespace lyx
 
 #endif
-
-#if 0
-
--#include <locale>
-
-namespace lyx {
-
-// This version of the Pimpl utilizes the message capability of
-// libstdc++ that is distributed with GNU G++.
-class Messages::Pimpl {
-public:
-       typedef messages<char>::catalog catalog;
-
-       Pimpl(string const & l)
-               : lang_(l),
-                 loc_gl(lang_.c_str()),
-                 mssg_gl(use_facet<messages<char> >(loc_gl))
-       {
-               //LYXERR("Messages: language(" << l << ") in dir(" << dir << ")");
-
-               string const locale_dir = package().locale_dir().toFilesystemEncoding();
-               cat_gl = mssg_gl.open(PACKAGE, loc_gl, locale_dir.c_str());
-
-       }
-
-       ~Pimpl()
-       {
-               mssg_gl.close(cat_gl);
-       }
-
-       docstring const get(string const & msg) const
-       {
-               return mssg_gl.get(cat_gl, 0, 0, msg);
-       }
-private:
-       ///
-       string lang_;
-       ///
-       locale loc_gl;
-       ///
-       messages<char> const & mssg_gl;
-       ///
-       catalog cat_gl;
-};
-
-} // namespace lyx
-
-#endif