]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove superfluous call in wxTranslations::LoadCatalog().
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 16 Jun 2013 11:51:38 +0000 (11:51 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 16 Jun 2013 11:51:38 +0000 (11:51 +0000)
This call to GetAvailableTranslations() did nothing, it's value was
ignored, and it was done before m_loader was checked for != NULL.
Probably some leftover debugging code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/translation.cpp

index 1996330eac5d7eecfff058fc16f8d2e6fd965c6c..e9bbd0e4eb3c65be5284686fc2a5311a384b826a 100644 (file)
@@ -1512,7 +1512,6 @@ bool wxTranslations::AddCatalog(const wxString& domain,
 
 bool wxTranslations::LoadCatalog(const wxString& domain, const wxString& lang)
 {
 
 bool wxTranslations::LoadCatalog(const wxString& domain, const wxString& lang)
 {
-    m_loader->GetAvailableTranslations(domain);
     wxCHECK_MSG( m_loader, false, "loader can't be NULL" );
 
     wxMsgCatalog *cat = NULL;
     wxCHECK_MSG( m_loader, false, "loader can't be NULL" );
 
     wxMsgCatalog *cat = NULL;