From 0fef127841bb42e77e0be0751023b78ffd453795 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 30 Jun 2009 05:27:11 +0000 Subject: [PATCH] Removed stub for Linux /sys/power processing. Apparently /sys/power doesn't expose battery information at this time. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403673 --- src/power/SDL_power.c | 2 -- src/power/linux/SDL_syspower.c | 8 -------- 2 files changed, 10 deletions(-) diff --git a/src/power/SDL_power.c b/src/power/SDL_power.c index 32a0b6746..ed8ca73f5 100644 --- a/src/power/SDL_power.c +++ b/src/power/SDL_power.c @@ -30,7 +30,6 @@ typedef SDL_bool (*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 @@ SDL_GetPowerInfo_Hardwired(SDL_PowerState * state, int *seconds, int *percent) 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 --git a/src/power/linux/SDL_syspower.c b/src/power/linux/SDL_syspower.c index c37b828f6..bfada38f6 100644 --- a/src/power/linux/SDL_syspower.c +++ b/src/power/linux/SDL_syspower.c @@ -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)