summaryrefslogtreecommitdiff
path: root/plugins/AutoShutdown/src/watcher.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-23 16:10:33 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-23 16:10:33 +0300
commit67fc09987e008aacbdd07b205a89bc6a5ef28b8a (patch)
treebdf581ed00d4ebc832470bad16882ee5f558f6de /plugins/AutoShutdown/src/watcher.cpp
parentb24b605821da1f4581d0a66d98f63effbecf46f6 (diff)
old obsoleted code removed
Diffstat (limited to 'plugins/AutoShutdown/src/watcher.cpp')
-rw-r--r--plugins/AutoShutdown/src/watcher.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/plugins/AutoShutdown/src/watcher.cpp b/plugins/AutoShutdown/src/watcher.cpp
index 57ee51f9f4..e91433c632 100644
--- a/plugins/AutoShutdown/src/watcher.cpp
+++ b/plugins/AutoShutdown/src/watcher.cpp
@@ -200,17 +200,6 @@ static BOOL CALLBACK CpuUsageWatcherProc(uint8_t nCpuUsage, LPARAM lParam)
return TRUE;
}
-/************************* Weather Shutdown ***************************/
-
-static int WeatherUpdated(WPARAM wParam, LPARAM lParam)
-{
- char *pszProto = Proto_GetBaseAccountName(wParam);
- if ((BOOL)lParam && pszProto != nullptr && Proto_GetStatus(pszProto) == ID_STATUS_INVISIBLE)
- if (g_plugin.getByte("WeatherShutdown", SETTING_WEATHERSHUTDOWN_DEFAULT))
- ServiceShutdown(SDSDT_SHUTDOWN, TRUE);
- return 0;
-}
-
/************************* Services ***********************************/
INT_PTR ServiceStartWatcher(WPARAM, LPARAM lParam)
@@ -282,10 +271,6 @@ INT_PTR ServiceIsWatcherEnabled(WPARAM, LPARAM)
void WatcherModulesLoaded(void)
{
- /* Weather Shutdown */
- if (ServiceExists(MS_WEATHER_UPDATE))
- hHookWeatherUpdated = HookEvent(ME_WEATHER_UPDATED, WeatherUpdated);
-
/* restore watcher if it was running on last exit */
if (g_plugin.getByte("RememberOnRestart", 0) == SDROR_RUNNING) {
g_plugin.setByte("RememberOnRestart", 1);