[haiku-commits] r41147 - in haiku/trunk: headers/os/locale src/kits/locale

  • From: jonas@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 31 Mar 2011 09:17:05 +0200 (CEST)

Author: kirilla
Date: 2011-03-31 09:17:05 +0200 (Thu, 31 Mar 2011)
New Revision: 41147
Changeset: https://dev.haiku-os.org/changeset/41147

Modified:
   haiku/trunk/headers/os/locale/LocaleRoster.h
   haiku/trunk/src/kits/locale/LocaleRoster.cpp
Log:
Remove superfluous function.

Modified: haiku/trunk/headers/os/locale/LocaleRoster.h
===================================================================
--- haiku/trunk/headers/os/locale/LocaleRoster.h        2011-03-31 04:55:08 UTC 
(rev 41146)
+++ haiku/trunk/headers/os/locale/LocaleRoster.h        2011-03-31 07:17:05 UTC 
(rev 41147)
@@ -72,10 +72,6 @@
                                                                        const 
entry_ref& ref,
                                                                        bool 
traverse = false);
 
-                       status_t                        
GetLocalizedFileName(BString& localizedFileName,
-                                                                       const 
char* signature, const char* context,
-                                                                       const 
char* string);
-
        static  const char*                     kCatLangAttr;
        static  const char*                     kCatSigAttr;
        static  const char*                     kCatFingerprintAttr;

Modified: haiku/trunk/src/kits/locale/LocaleRoster.cpp
===================================================================
--- haiku/trunk/src/kits/locale/LocaleRoster.cpp        2011-03-31 04:55:08 UTC 
(rev 41146)
+++ haiku/trunk/src/kits/locale/LocaleRoster.cpp        2011-03-31 07:17:05 UTC 
(rev 41147)
@@ -412,30 +412,7 @@
        if (status != B_OK)
                return status;
 
-       return GetLocalizedFileName(localizedFileName, signature, context, 
string);
-}
-
-
-/*!    \brief Looks up a localized filename from a catalog.
-       \param localizedFileName A pre-allocated BString object for the result
-               of the lookup.
-       \param signature The "x-vnd..." part of an application signature.
-       \param context A catalog context. Likely 
B_TRANSLATE_SYSTEM_NAME_CONTEXT.
-       \param string A catalog string entry. Likely the unlocalized app name.
-       \return
-       - \c B_OK: success
-       - \c B_ENTRY_NOT_FOUND: failure. Catalog entry not found in catalog, etc
-       - other error codes: failure
-
-       Lookup is done for the top preferred language, only.
-       Lookup fails if a comment is present in the catalog entry.
-*/
-status_t
-BLocaleRoster::GetLocalizedFileName(BString& localizedFileName,
-       const char* signature, const char* context, const char* string)
-{
        BCatalog catalog(signature);
-
        const char* temp = catalog.GetString(string, context);
 
        if (temp == NULL)


Other related posts:

  • » [haiku-commits] r41147 - in haiku/trunk: headers/os/locale src/kits/locale - jonas