mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Get rid of unused functions
This commit is contained in:
parent
cd0b925fa1
commit
1e27312c25
@ -312,52 +312,6 @@ static unsigned char check_arm_cpu_feature(const char* feature)
|
||||
return status;
|
||||
}
|
||||
|
||||
static unsigned char get_arm_cpu_implementer(void)
|
||||
{
|
||||
unsigned char implementer = 0;
|
||||
FILE *fp = fopen("/proc/cpuinfo", "r");
|
||||
|
||||
if (fp)
|
||||
{
|
||||
char line[1024];
|
||||
|
||||
while (fgets(line , sizeof(line) , fp) != NULL)
|
||||
{
|
||||
if (strncmp(line, "CPU implementer\t: ", 18))
|
||||
continue;
|
||||
|
||||
sscanf(line+18, "0x%02hhx", &implementer);
|
||||
|
||||
break;
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
||||
return implementer;
|
||||
}
|
||||
|
||||
static unsigned short get_arm_cpu_part(void)
|
||||
{
|
||||
unsigned short part = 0;
|
||||
FILE *fp = fopen("/proc/cpuinfo", "r");
|
||||
|
||||
if (fp)
|
||||
{
|
||||
char line[1024];
|
||||
|
||||
while (fgets(line , sizeof(line) , fp) != NULL)
|
||||
{
|
||||
if (strncmp(line, "CPU part\t: ", 11))
|
||||
continue;
|
||||
|
||||
sscanf(line+11, "0x%03hx", &part);
|
||||
|
||||
break;
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
||||
return part;
|
||||
}
|
||||
|
||||
#if !defined(_SC_NPROCESSORS_ONLN)
|
||||
/* Parse an decimal integer starting from 'input', but not going further
|
||||
* than 'limit'. Return the value into '*result'.
|
||||
|
Loading…
x
Reference in New Issue
Block a user