changeset 3204:f77f50add24f

Removed stub for Linux /sys/power processing. Apparently /sys/power doesn't expose battery information at this time.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 30 Jun 2009 05:27:11 +0000
parents 790cbbda6429
children f9a4aa1e1b34
files src/power/SDL_power.c src/power/linux/SDL_syspower.c
diffstat 2 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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)