From 10a6f4bf380d323f512cb8e70eaf7eda0ed1a39c Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Fri, 27 Jun 2014 18:26:36 -0400 Subject: [PATCH] cleanup notifications preprocessor instructions, for readability --- src/notifications/notifications.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/notifications/notifications.cpp b/src/notifications/notifications.cpp index 78a60f5bcdf0..16ab6dda4120 100644 --- a/src/notifications/notifications.cpp +++ b/src/notifications/notifications.cpp @@ -2,9 +2,9 @@ #include "global.hpp" #include "log.hpp" +#include "game_config.hpp" #include "game_preferences.hpp" -#include "game_config.hpp" #include #include @@ -28,7 +28,6 @@ Growl_Delegate growl_obj; #endif - #ifdef _WIN32 #include "windows_tray_notification.hpp" #endif @@ -42,10 +41,6 @@ using boost::uint32_t; namespace notifications { #if !(defined(HAVE_LIBDBUS) || defined(HAVE_GROWL) || defined(_WIN32)) -#define NO_NOTIFICATIONS -#endif - -#if defined(NO_NOTIFICATIONS) void send_notification(const std::string& /*owner*/, const std::string& /*message*/) {} #else @@ -186,7 +181,6 @@ static uint32_t send_dbus_notification(DBusConnection *connection, uint32_t repl } #endif // end #if LIB_DBUS -// Still in #if !defined NO_NOTIFICATIONS void send_notification(const std::string& owner, const std::string& message) { if (preferences::get("disable_notifications", false)) { return; }