Some cleanups

This commit is contained in:
louiz’
2016-10-31 14:03:37 +01:00
parent 8c26b4d19f
commit ae02e58b9d
4 changed files with 6 additions and 11 deletions
+2 -6
View File
@@ -196,12 +196,8 @@ namespace utils
outbuf_ptr++;
done = true;
break;
case E2BIG:
// This should never happen
done = true;
break;
default:
// This should happen even neverer
case E2BIG: // This should never happen
default: // This should happen even neverer
done = true;
break;
}
+1 -2
View File
@@ -222,9 +222,8 @@ void XmppComponent::close_document()
this->doc_open = false;
}
void XmppComponent::handle_handshake(const Stanza& stanza)
void XmppComponent::handle_handshake(const Stanza&)
{
(void)stanza;
this->authenticated = true;
this->ever_auth = true;
log_info("Authenticated with the XMPP server");