From d8fe6df7a7bc385a80ae3fde0e9e4a2ac12d4af3 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 12 Oct 2014 18:38:23 +0100 Subject: Kill some logically dead code detected by Coverity. - m_watch: wl has already been confirmed to not be NULL on L161. --- src/modules/m_watch.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index be05d7d2d..074ce37ad 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -163,9 +163,6 @@ class CommandWatch : public Command /* Yup, is on my list */ watchlist::iterator n = wl->find(nick); - if (!wl) - return CMD_FAILURE; - if (n != wl->end()) { if (!n->second.empty()) -- cgit v1.2.3