remove unused code from i18nlangtag/LanguageTag

Specifically:
  LanguageTag::LanguageTag()
  LanguageTag::getRegion() const
  LanguageTag::reset(_rtl_Locale const&)

Change-Id: I8822db6e1df7cd912e9ae82cb9d9f51370d4c583
This commit is contained in:
Noel Grandin 2014-02-27 14:57:24 +02:00
parent 3543d2d20b
commit a4dd8a2106
3 changed files with 0 additions and 47 deletions

View File

@ -507,18 +507,6 @@ LanguageTag::LanguageTag( LanguageType nLanguage )
}
LanguageTag::LanguageTag()
:
mnLangID( LANGUAGE_DONTKNOW),
mbSystemLocale( false),
mbInitializedBcp47( false),
mbInitializedLocale( false),
mbInitializedLangID( true),
mbIsFallback( false)
{
}
LanguageTag::LanguageTag( const OUString& rBcp47, const OUString& rLanguage,
const OUString& rScript, const OUString& rCountry )
:
@ -1067,14 +1055,6 @@ LanguageTag & LanguageTag::reset( LanguageType nLanguage )
}
LanguageTag & LanguageTag::reset( const rtl_Locale & rLocale )
{
reset( lang::Locale( rLocale.Language, rLocale.Country, rLocale.Variant));
convertFromRtlLocale();
return *this;
}
bool LanguageTagImpl::canonicalize()
{
#ifdef erDEBUG
@ -1889,14 +1869,6 @@ OUString LanguageTagImpl::getRegion() const
}
OUString LanguageTag::getRegion() const
{
OUString aRet( getImpl()->getRegion());
const_cast<LanguageTag*>(this)->syncFromImpl();
return aRet;
}
OUString LanguageTagImpl::getVariants() const
{
if (!mbCachedVariants)

View File

@ -76,12 +76,6 @@ public:
/** Init LanguageTag with LanguageType MS-LangID. */
explicit LanguageTag( LanguageType nLanguage );
/** Default ctor, init LanguageTag with LanguageType LANGUAGE_DONTKNOW.
To be able to use LanguageTag in maps etc., avoid otherwise.
*/
explicit LanguageTag();
/** Init LanguageTag with either BCP 47 language tag (precedence if not
empty), or a combination of language, script and country.
@ -181,13 +175,6 @@ public:
*/
OUString getCountry() const;
/** Get BCP 47 region tag, which may be an ISO 3166 country alpha code or
any other BCP 47 region tag.
Always resolves an empty tag to the system locale.
*/
OUString getRegion() const;
/** Get BCP 47 variant subtags, of the IANA Language Subtag Registry.
If there are multiple variant subtags they are separated by '-'.
@ -258,9 +245,6 @@ public:
/** Reset with LanguageType MS-LangID. */
LanguageTag & reset( LanguageType nLanguage );
/** Reset with rtl_Locale. */
LanguageTag & reset( const rtl_Locale & rLocale );
/** Fall back to a known locale.

View File

@ -30,9 +30,6 @@ ImportExcel::GetLastFormula(short)
Json::Json(std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Json, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Json> > > const&)
Json::Json(std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::shared_ptr<libcmis::Property>, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, boost::shared_ptr<libcmis::Property> > > > const&)
Json::swap(Json&)
LanguageTag::LanguageTag()
LanguageTag::getRegion() const
LanguageTag::reset(_rtl_Locale const&)
ListBox::GetMRUCount() const
MenuBar::AddMenuBarButton(Image const&, Link const&, rtl::OUString const&, unsigned short)
MenuBar::GetMenuBarButtonRectPixel(unsigned short)