(Apple) Get rid of objc_get_value_from_config

This commit is contained in:
Twinaphex 2014-07-19 17:53:24 +02:00
parent 34002c0e10
commit ba99ec92ee
2 changed files with 0 additions and 14 deletions

View File

@ -55,7 +55,6 @@ extern void apple_stop_iteration();
// utility.m
extern void apple_display_alert(const char *message, const char *title);
extern NSString *objc_get_value_from_config(config_file_t* config, NSString* name, NSString* defaultValue);
extern NSString *apple_get_core_id(const core_info_t *core);
extern NSString *apple_get_core_display_name(NSString *core_id);

View File

@ -44,19 +44,6 @@ void apple_display_alert(const char *message, const char *title)
#endif
}
// Fetch a value from a config file, returning defaultValue if the value is not present
NSString* objc_get_value_from_config(config_file_t* config, NSString* name, NSString* defaultValue)
{
NSString *result;
char* data = NULL;
if (config)
config_get_string(config, name.UTF8String, &data);
result = data ? BOXSTRING(data) : defaultValue;
free(data);
return result;
}
// Get a core ID as an NSString
NSString *apple_get_core_id(const core_info_t *core)
{