Remove logically dead code.

This commit is contained in:
Jon Siwek 2013-09-25 13:37:46 -05:00
parent 4072afb363
commit 64f3bef96d
4 changed files with 3 additions and 4 deletions

View file

@ -1247,7 +1247,7 @@ bool RemoteSerializer::SendCapabilities(Peer* peer)
caps |= Peer::PID_64BIT;
caps |= Peer::NEW_CACHE_STRATEGY;
return caps ? SendToChild(MSG_CAPS, peer, 3, caps, 0, 0) : true;
return SendToChild(MSG_CAPS, peer, 3, caps, 0, 0);
}
bool RemoteSerializer::Listen(const IPAddr& ip, uint16 port, bool expect_ssl,

View file

@ -2162,7 +2162,7 @@ void TableVal::DoExpire(double t)
else if ( v->ExpireAccessTime() + expire_time < t )
{
Val* val = v ? v->Value() : 0;
Val* val = v->Value();
if ( expire_expr )
{

View file

@ -79,7 +79,7 @@ flow AYIYA_Flow
sessions->DoNextInnerPacket(network_time(), 0, inner, e, ec);
return (result == 0) ? true : false;
return true;
%}
};

View file

@ -1153,7 +1153,6 @@ int Manager::SendEntryTable(Stream* i, const Value* const *vals)
{
// just quit and delete everything we created.
delete idxhash;
delete h;
return stream->num_val_fields + stream->num_idx_fields;
}