string folding and dead code removal

This commit is contained in:
Mitchell Livingston
2008-04-06 04:16:05 +00:00
parent b4c5e1450e
commit 1d40202bfc
5 changed files with 42 additions and 76 deletions

View File

@@ -62,33 +62,6 @@ void tr_msgInit( void )
messageLock = tr_lockNew( );
}
/*
#if defined(SYS_DARWIN)
const char * tr_getMacLocalizedCString(CFStringRef string)
{
//if you need to be thread safe, add proper locks around that
static CFMutableDictionaryRef mapping = NULL;
if( mapping == NULL )
{
mapping = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, NULL);
}
const char * result = (const char *)CFDictionaryGetValue(mapping, string);
if( result == NULL )
{
CFStringRef localizedString = CFCopyLocalizedStringFromTable(string, CFSTR("LibraryLocalizable"), NULL);
result = (const char *)malloc(CFStringGetMaximumSizeForEncoding(CFStringGetLength(localizedString), kCFStringEncodingUTF8));
CFStringGetCString(localizedString, (char *)result, CFStringGetLength(localizedString)+1, kCFStringEncodingUTF8);
CFDictionarySetValue(mapping, string, result);
}
return result;
}
#endif
*/
FILE*
tr_getLog( void )
{