Remove cruft

This commit is contained in:
Jean-Marc Lasgouttes 2013-05-08 15:12:42 +02:00
parent 151960440e
commit cc00530743

View 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