From 7de38a08b97e0554e318b8c25806cef5d47259e6 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 12 Jun 2014 17:49:53 +0000 Subject: headers of not adopted plugins moved to !Deprecated git-svn-id: http://svn.miranda-ng.org/main/trunk@9438 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AutoShutdown/src/watcher.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'plugins/AutoShutdown/src/watcher.cpp') diff --git a/plugins/AutoShutdown/src/watcher.cpp b/plugins/AutoShutdown/src/watcher.cpp index 70111eaa44..61686744f4 100644 --- a/plugins/AutoShutdown/src/watcher.cpp +++ b/plugins/AutoShutdown/src/watcher.cpp @@ -31,8 +31,6 @@ static HANDLE hHookIdleChanged; static HANDLE hHookSettingChanged; /* Weather Shutdown */ static HANDLE hHookWeatherUpdated; -/* Overheat Shutdown */ -static HANDLE hHookHddOverheat; /* Services */ static HANDLE hServiceStartWatcher,hServiceStopWatcher,hServiceIsEnabled; static HANDLE hEventWatcherChanged; @@ -246,15 +244,6 @@ static int WeatherUpdated(WPARAM wParam,LPARAM lParam) return 0; } -/************************* Overheat Shutdown **************************/ - -static int HddOverheat(WPARAM wParam,LPARAM lParam) -{ - if (db_get_b(NULL,"AutoShutdown","HddOverheatShutdown",SETTING_HDDOVERHEATSHUTDOWN_DEFAULT)) - ServiceShutdown(SDSDT_SHUTDOWN,TRUE); - return 0; -} - /************************* Services ***********************************/ INT_PTR ServiceStartWatcher(WPARAM wParam,LPARAM lParam) @@ -329,9 +318,6 @@ void WatcherModulesLoaded(void) /* Weather Shutdown */ if (ServiceExists(MS_WEATHER_UPDATE)) hHookWeatherUpdated=HookEvent(ME_WEATHER_UPDATED,WeatherUpdated); - /* Overheat Shutdown */ - if (ServiceExists(MS_SYSINFO_HDDTEMP)) - hHookHddOverheat=HookEvent(ME_SYSINFO_HDDOVERHEAT,HddOverheat); /* restore watcher if it was running on last exit */ if (db_get_b(NULL,"AutoShutdown","RememberOnRestart",0)==SDROR_RUNNING) { @@ -356,8 +342,6 @@ void InitWatcher(void) hHookProtoAck=HookEvent(ME_PROTO_ACK,ProtoAck); /* Weather Shutdown */ hHookWeatherUpdated=NULL; - /* Overheat Shutdown */ - hHookHddOverheat=NULL; /* Services */ hEventWatcherChanged=CreateHookableEvent(ME_AUTOSHUTDOWN_WATCHERCHANGED); hServiceStartWatcher = CreateServiceFunction(MS_AUTOSHUTDOWN_STARTWATCHER, ServiceStartWatcher); @@ -383,8 +367,6 @@ void UninitWatcher(void) mir_free(transfers); /* does NULL check */ /* Weather Shutdown */ UnhookEvent(hHookWeatherUpdated); /* does NULL check */ - /* Overheat Shutdown */ - UnhookEvent(hHookHddOverheat); /* does NULL check */ /* Services */ DestroyServiceFunction(hServiceStartWatcher); DestroyServiceFunction(hServiceStopWatcher); -- cgit v1.2.3