Skip to content

Commit

Permalink
Remove unused callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Feb 16, 2014
1 parent 352e406 commit cbd6dde
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions otr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,21 +526,6 @@ friend class COtrGenKeyTimer;
mod->PutIRC(CString("PRIVMSG ") + recipient + " :" + message);
}

static void otrUpdateContextList(void *opdata) {
// do nothing?
COtrMod *mod = static_cast<COtrMod*>(opdata);
assert(mod);
mod->PutModuleBuffered("Not implemented: otrUpdateContextList");
}

static void otrNewFingerprint(void *opdata, OtrlUserState us, const char *accountname,
const char *protocol, const char *username, unsigned char fingerprint[20]) {
// do nothing?
COtrMod *mod = static_cast<COtrMod*>(opdata);
assert(mod);
mod->PutModuleBuffered("Not implemented: otrNewFingerprint");
}

static void otrWriteFingerprints(void *opdata) {
COtrMod *mod = static_cast<COtrMod*>(opdata);
assert(mod);
Expand Down Expand Up @@ -714,8 +699,8 @@ friend class COtrGenKeyTimer;
ops.create_privkey = otrCreatePrivkey;
ops.is_logged_in = otrIsLoggedIn;
ops.inject_message = otrInjectMessage;
ops.update_context_list = otrUpdateContextList;
ops.new_fingerprint = otrNewFingerprint;
ops.update_context_list = NULL; // do nothing
ops.new_fingerprint = NULL; // do nothing
ops.write_fingerprints = otrWriteFingerprints;
ops.gone_secure = otrGoneSecure;
ops.gone_insecure = otrGoneInsecure;
Expand All @@ -725,9 +710,9 @@ friend class COtrGenKeyTimer;
ops.account_name_free = otrFreeStringNop;
ops.received_symkey = otrReceiveSymkey;
ops.otr_error_message = otrErrorMessage;
ops.otr_error_message_free = otrFreeStringNop;
ops.otr_error_message_free = otrFreeStringNop;
ops.resent_msg_prefix = NULL; // uses [resent] by default
ops.resent_msg_prefix_free = NULL;
ops.resent_msg_prefix_free = NULL;
ops.handle_smp_event = otrHandleSMPEvent;
ops.handle_msg_event = otrHandleMsgEvent;
ops.create_instag = otrCreateInsTag;
Expand Down

0 comments on commit cbd6dde

Please sign in to comment.