summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-28 13:53:22 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-28 13:53:22 +0200
commit7cd21b9ed1a87af2979573b580508651466a67a8 (patch)
tree9027e1e12dcb9962accc64bf1185ed51c197a221 /src
parent51c2ed6d130b34f4f2888b2fc99e965f215b20b8 (diff)
downloadabrt-7cd21b9ed1a87af2979573b580508651466a67a8.tar.gz
abrt-7cd21b9ed1a87af2979573b580508651466a67a8.tar.xz
abrt-7cd21b9ed1a87af2979573b580508651466a67a8.zip
remove unused CObserver::Debug method
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r--src/Daemon/CrashWatcher.cpp5
-rw-r--r--src/Daemon/CrashWatcher.h7
-rw-r--r--src/Daemon/Daemon.cpp6
3 files changed, 6 insertions, 12 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp
index 06f05ee..b691795 100644
--- a/src/Daemon/CrashWatcher.cpp
+++ b/src/Daemon/CrashWatcher.cpp
@@ -39,11 +39,6 @@ void CCrashWatcher::Warning(const std::string& pMessage, uint64_t pJobID)
g_pCommLayer->Warning(pMessage, pJobID);
}
-void CCrashWatcher::Debug(const std::string& pMessage)
-{
- log("Debug: %s", pMessage.c_str());
-}
-
CCrashWatcher::CCrashWatcher()
{
}
diff --git a/src/Daemon/CrashWatcher.h b/src/Daemon/CrashWatcher.h
index 4fd9926..c30bbb2 100644
--- a/src/Daemon/CrashWatcher.h
+++ b/src/Daemon/CrashWatcher.h
@@ -34,12 +34,6 @@
#endif
#include "CommLayerInner.h"
-// 1024 simultaneous actions
-#define INOTIFY_BUFF_SIZE ((sizeof(struct inotify_event)+FILENAME_MAX)*1024)
-
-#define VAR_RUN_LOCK_FILE VAR_RUN"/abrt.lock"
-#define VAR_RUN_PIDFILE VAR_RUN"/abrt.pid"
-
class CCrashWatcher
: public CObserver
@@ -51,7 +45,6 @@ class CCrashWatcher
public:
/* Observer methods */
virtual void Status(const std::string& pMessage, uint64_t pJobID=0);
- virtual void Debug(const std::string& pMessage);
virtual void Warning(const std::string& pMessage, uint64_t pJobID=0);
};
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp
index de9431a..b6155f1 100644
--- a/src/Daemon/Daemon.cpp
+++ b/src/Daemon/Daemon.cpp
@@ -30,6 +30,10 @@
#include "Daemon.h"
+#define VAR_RUN_LOCK_FILE VAR_RUN"/abrt.lock"
+#define VAR_RUN_PIDFILE VAR_RUN"/abrt.pid"
+
+
//FIXME: add some struct to be able to join all threads!
typedef struct cron_callback_data_t
{
@@ -423,6 +427,8 @@ static gboolean waitsignal_dispatch(GSource *source, GSourceFunc callback, gpoin
}
/* Inotify handler */
+/* 1024 simultaneous actions */
+#define INOTIFY_BUFF_SIZE ((sizeof(struct inotify_event)+FILENAME_MAX)*1024)
static gboolean handle_event_cb(GIOChannel *gio, GIOCondition condition, gpointer ptr_unused)
{
GIOError err;