@@ -496,104 +496,6 @@ static void frontend_darwin_get_env(int *argc, char *argv[],
496496 path_mkdir (g_defaults.dirs [DEFAULT_DIR_MENU_CONFIG]);
497497}
498498
499- static int frontend_darwin_get_rating (void )
500- {
501- char model[PATH_MAX_LENGTH] = {0 };
502-
503- frontend_darwin_get_name (model, sizeof (model));
504-
505- /* iPhone 4S */
506- if (strstr (model, " iPhone4,1" ))
507- return 8 ;
508-
509- /* iPad 2/iPad Mini 1 */
510- if (strstr (model, " iPad2" ))
511- return 9 ;
512-
513- /* iPhone 5/5C */
514- if (strstr (model, " iPhone5" ))
515- return 13 ;
516-
517- /* iPhone 5S */
518- if (strstr (model, " iPhone6,1" ) || strstr (model, " iPhone6,2" ))
519- return 14 ;
520-
521- /* iPad Mini 2/3 */
522- if ( strstr (model, " iPad4,4" )
523- || strstr (model, " iPad4,5" )
524- || strstr (model, " iPad4,6" )
525- || strstr (model, " iPad4,7" )
526- || strstr (model, " iPad4,8" )
527- || strstr (model, " iPad4,9" )
528- )
529- return 15 ;
530-
531- /* iPad Air */
532- if ( strstr (model, " iPad4,1" )
533- || strstr (model, " iPad4,2" )
534- || strstr (model, " iPad4,3" )
535- )
536- return 16 ;
537-
538- /* iPhone 6, iPhone 6 Plus */
539- if (strstr (model, " iPhone7" ))
540- return 17 ;
541-
542- /* iPad Air 2 */
543- if (strstr (model, " iPad5,3" ) || strstr (model, " iPad5,4" ))
544- return 18 ;
545-
546- /* iPad Pro (12.9 Inch) */
547- if (strstr (model, " iPad6,7" ) || strstr (model, " iPad6,8" ))
548- return 19 ;
549-
550- /* iPad Pro (9.7 Inch) */
551- if (strstr (model, " iPad6,3" ) || strstr (model, " iPad6,4" ))
552- return 19 ;
553-
554- /* iPad 5th Generation */
555- if (strstr (model, " iPad6,11" ) || strstr (model, " iPad6,12" ))
556- return 19 ;
557-
558- /* iPad Pro (12.9 Inch 2nd Generation) */
559- if (strstr (model, " iPad7,1" ) || strstr (model, " iPad7,2" ))
560- return 19 ;
561-
562- /* iPad Pro (10.5 Inch) */
563- if (strstr (model, " iPad7,3" ) || strstr (model, " iPad7,4" ))
564- return 19 ;
565-
566- /* iPad Pro 6th Generation) */
567- if (strstr (model, " iPad7,5" ) || strstr (model, " iPad7,6" ))
568- return 19 ;
569-
570- /* iPad Pro (11 Inch) */
571- if ( strstr (model, " iPad8,1" )
572- || strstr (model, " iPad8,2" )
573- || strstr (model, " iPad8,3" )
574- || strstr (model, " iPad8,4" )
575- )
576- return 19 ;
577-
578- /* iPad Pro (12.9 3rd Generation) */
579- if ( strstr (model, " iPad8,5" )
580- || strstr (model, " iPad8,6" )
581- || strstr (model, " iPad8,7" )
582- || strstr (model, " iPad8,8" )
583- )
584- return 19 ;
585-
586- /* iPad Air 3rd Generation) */
587- if ( strstr (model, " iPad11,3" )
588- || strstr (model, " iPad11,4" ))
589- return 19 ;
590-
591- /* TODO/FIXME -
592- - more ratings for more systems
593- - determine rating more intelligently*/
594- return -1 ;
595- }
596-
597499static enum frontend_powerstate frontend_darwin_get_powerstate (
598500 int *seconds, int *percent)
599501{
@@ -1172,7 +1074,6 @@ static void frontend_darwin_content_loaded(void)
11721074 NULL , /* shutdown */
11731075 frontend_darwin_get_name, /* get_name */
11741076 frontend_darwin_get_os, /* get_os */
1175- frontend_darwin_get_rating, /* get_rating */
11761077 frontend_darwin_content_loaded, /* content_loaded */
11771078 frontend_darwin_get_arch, /* get_architecture */
11781079 frontend_darwin_get_powerstate, /* get_powerstate */
0 commit comments