# HG changeset patch # User Ryan C. Gordon # Date 1246339631 0 # Node ID f77f50add24f6bf28d5393aa8437e55e6837bc08 # Parent 790cbbda6429c6379a4d5930caab23dc68c26f3e Removed stub for Linux /sys/power processing. Apparently /sys/power doesn't expose battery information at this time. diff -r 790cbbda6429 -r f77f50add24f src/power/SDL_power.c --- a/src/power/SDL_power.c Tue Jun 30 03:50:30 2009 +0000 +++ b/src/power/SDL_power.c Tue Jun 30 05:27:11 2009 +0000 @@ -30,7 +30,6 @@ (*SDL_GetPowerInfo_Impl) (SDL_PowerState * state, int *seconds, int *percent); -SDL_bool SDL_GetPowerInfo_Linux_sys_power(SDL_PowerState *, int *, int *); SDL_bool SDL_GetPowerInfo_Linux_proc_acpi(SDL_PowerState *, int *, int *); SDL_bool SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState *, int *, int *); SDL_bool SDL_GetPowerInfo_Windows(SDL_PowerState *, int *, int *); @@ -57,7 +56,6 @@ static SDL_GetPowerInfo_Impl implementations[] = { #ifndef SDL_POWER_DISABLED #ifdef SDL_POWER_LINUX /* in order of preference. More than could work. */ - SDL_GetPowerInfo_Linux_sys_power, SDL_GetPowerInfo_Linux_proc_acpi, SDL_GetPowerInfo_Linux_proc_apm, #endif diff -r 790cbbda6429 -r f77f50add24f src/power/linux/SDL_syspower.c --- a/src/power/linux/SDL_syspower.c Tue Jun 30 03:50:30 2009 +0000 +++ b/src/power/linux/SDL_syspower.c Tue Jun 30 05:27:11 2009 +0000 @@ -34,14 +34,6 @@ #include "SDL_power.h" -SDL_bool -SDL_GetPowerInfo_Linux_sys_power(SDL_PowerState * state, - int *seconds, int *percent) -{ - return SDL_FALSE; /* !!! FIXME: write me. */ -} - - static const char *proc_acpi_path = "/proc/acpi/battery"; static int open_acpi_file(const char *node, const char *key)