From d8f6c75ab94ee97e9a49ce669d74dc252225586a Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 28 Feb 2011 03:24:48 +0000 Subject: Hopefully get shutdown/exit handling on SDL/maemo right. Make shutdown_hw() not return as it's supposed to, ensure sim_do_exit() is called from main thread and move sim_kernel_shutdown() into it to simplify things. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29455 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/common/powermgmt-sim.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'uisimulator') diff --git a/uisimulator/common/powermgmt-sim.c b/uisimulator/common/powermgmt-sim.c index 30b04d6a0b..12bb94fd5d 100644 --- a/uisimulator/common/powermgmt-sim.c +++ b/uisimulator/common/powermgmt-sim.c @@ -24,7 +24,6 @@ #include #include "kernel.h" #include "powermgmt.h" -#include #define BATT_MINMVOLT 2500 /* minimum millivolts of battery */ #define BATT_MAXMVOLT 4500 /* maximum millivolts of battery */ @@ -154,15 +153,6 @@ void reset_poweroff_timer(void) { } -void shutdown_hw(void) -{ - /* Shut down SDL event loop */ - SDL_Event event; - memset(&event, 0, sizeof(SDL_Event)); - event.type = SDL_USEREVENT; - SDL_PushEvent(&event); -} - void cancel_shutdown(void) { } -- cgit v1.2.3