From: Jean-Marc Lasgouttes Date: Wed, 8 May 2013 13:12:42 +0000 (+0200) Subject: Remove cruft X-Git-Tag: 2.1.0beta1~293 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cc00530743e5800b46d9633357ddc61f03f9bb4e;p=lyx.git Remove cruft --- diff --git a/src/support/Messages.cpp b/src/support/Messages.cpp index 4e58a873fd..ea6ec0dc57 100644 --- a/src/support/Messages.cpp +++ b/src/support/Messages.cpp @@ -243,51 +243,3 @@ bool Messages::available(string const & /* c */) } // namespace lyx #endif - -#if 0 - --#include - -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::catalog catalog; - - Pimpl(string const & l) - : lang_(l), - loc_gl(lang_.c_str()), - mssg_gl(use_facet >(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 const & mssg_gl; - /// - catalog cat_gl; -}; - -} // namespace lyx - -#endif