diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-07 18:13:23 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-07 18:13:23 +0200 |
commit | c64f91baf599133f88658e7a45a4d7e4a6c43d2b (patch) | |
tree | 194cce790f33327c26d6d569fce9f756981e432d /src/Daemon/CrashWatcher.cpp | |
parent | f2ee86e3b37b3d917cdf00fceffeffd65be1b3ce (diff) | |
download | abrt-c64f91baf599133f88658e7a45a4d7e4a6c43d2b.tar.gz abrt-c64f91baf599133f88658e7a45a4d7e4a6c43d2b.tar.xz abrt-c64f91baf599133f88658e7a45a4d7e4a6c43d2b.zip |
simplify logging by removing CCommLayerInner class
It had single use site. The class itself is trivial,
it just passed messages down to an CObserver.
Now we pass messages directly to an CObserver.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
-rw-r--r-- | src/Daemon/CrashWatcher.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index c64e22a0..1ad59988 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -450,8 +450,7 @@ CCrashWatcher::CCrashWatcher(const std::string& pPath) // TODO: initialize object according parameters -w -d // status has to be always created. m_pCommLayer = NULL; - m_pCommLayerInner = new CCommLayerInner(this, true, true); - comm_layer_inner_init(m_pCommLayerInner); + comm_layer_inner_init(this); m_pSettings = new CSettings(); m_pSettings->LoadSettings(std::string(CONF_DIR) + "/abrt.conf"); @@ -506,7 +505,6 @@ CCrashWatcher::~CCrashWatcher() delete m_pCommLayer; delete m_pMW; delete m_pSettings; - delete m_pCommLayerInner; if (pthread_mutex_destroy(&m_pJobsMutex) != 0) { throw CABRTException(EXCEP_FATAL, "CCrashWatcher::CCrashWatcher(): Can't destroy mutex!"); |