mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
remove dead code
This commit is contained in:
parent
07a1894c6e
commit
e18f66f587
2 changed files with 0 additions and 71 deletions
|
@ -372,41 +372,6 @@ CookieRef::pushNotifyDisconEvent( int socket, XWREASON why )
|
||||||
m_eventQueue.push_back( evt );
|
m_eventQueue.push_back( evt );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
CookieRef::pushDestBadEvent()
|
|
||||||
{
|
|
||||||
CRefEvent evt;
|
|
||||||
evt.type = XWE_DESTBAD;
|
|
||||||
m_eventQueue.push_back( evt );
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
CookieRef::pushDestOkEvent( const CRefEvent* oldEvt )
|
|
||||||
{
|
|
||||||
CRefEvent evt;
|
|
||||||
memcpy( &evt, oldEvt, sizeof(evt) );
|
|
||||||
evt.type = XWE_DESTOK;
|
|
||||||
m_eventQueue.push_back( evt );
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
CookieRef::pushCanLockEvent( const CRefEvent* oldEvt )
|
|
||||||
{
|
|
||||||
CRefEvent evt;
|
|
||||||
memcpy( &evt, oldEvt, sizeof(evt) );
|
|
||||||
evt.type = XWE_CAN_LOCK;
|
|
||||||
m_eventQueue.push_back( evt );
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
CookieRef::pushCantLockEvent( const CRefEvent* oldEvt )
|
|
||||||
{
|
|
||||||
CRefEvent evt;
|
|
||||||
memcpy( &evt, oldEvt, sizeof(evt) );
|
|
||||||
evt.type = XWE_CANT_LOCK;
|
|
||||||
m_eventQueue.push_back( evt );
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
CookieRef::pushLastSocketGoneEvent()
|
CookieRef::pushLastSocketGoneEvent()
|
||||||
{
|
{
|
||||||
|
@ -454,14 +419,6 @@ CookieRef::handleEvents()
|
||||||
forward( &evt );
|
forward( &evt );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case XWA_CHECKDEST:
|
|
||||||
checkDest( &evt );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case XWA_CHECK_CAN_LOCK:
|
|
||||||
checkFromServer( &evt );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case XWA_TIMERDISCONN:
|
case XWA_TIMERDISCONN:
|
||||||
disconnectSockets( 0, XWRELAY_ERROR_TIMEOUT );
|
disconnectSockets( 0, XWRELAY_ERROR_TIMEOUT );
|
||||||
break;
|
break;
|
||||||
|
@ -695,29 +652,6 @@ CookieRef::forward( const CRefEvent* evt )
|
||||||
}
|
}
|
||||||
} /* forward */
|
} /* forward */
|
||||||
|
|
||||||
void
|
|
||||||
CookieRef::checkDest( const CRefEvent* evt )
|
|
||||||
{
|
|
||||||
HostID dest = evt->u.fwd.dest;
|
|
||||||
int destSocket = SocketForHost( dest );
|
|
||||||
if ( destSocket == -1 ) {
|
|
||||||
pushDestBadEvent();
|
|
||||||
} else {
|
|
||||||
pushDestOkEvent( evt );
|
|
||||||
}
|
|
||||||
} /* checkDest */
|
|
||||||
|
|
||||||
void
|
|
||||||
CookieRef::checkFromServer( const CRefEvent* evt )
|
|
||||||
{
|
|
||||||
HostID src = evt->u.fwd.src;
|
|
||||||
if ( src == HOST_ID_SERVER ) {
|
|
||||||
pushCanLockEvent( evt );
|
|
||||||
} else {
|
|
||||||
pushCantLockEvent( evt );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
CookieRef::send_msg( int socket, HostID id, XWRelayMsg msg, XWREASON why )
|
CookieRef::send_msg( int socket, HostID id, XWRelayMsg msg, XWREASON why )
|
||||||
{
|
{
|
||||||
|
|
|
@ -157,10 +157,6 @@ class CookieRef {
|
||||||
void pushRemoveSocketEvent( int socket );
|
void pushRemoveSocketEvent( int socket );
|
||||||
void pushNotifyDisconEvent( int socket, XWREASON why );
|
void pushNotifyDisconEvent( int socket, XWREASON why );
|
||||||
|
|
||||||
void pushDestOkEvent( const CRefEvent* evt );
|
|
||||||
void pushCanLockEvent( const CRefEvent* evt );
|
|
||||||
void pushCantLockEvent( const CRefEvent* evt );
|
|
||||||
|
|
||||||
void handleEvents();
|
void handleEvents();
|
||||||
|
|
||||||
void sendResponse( const CRefEvent* evt, int initial );
|
void sendResponse( const CRefEvent* evt, int initial );
|
||||||
|
@ -172,7 +168,6 @@ class CookieRef {
|
||||||
void cancelAllConnectedTimer();
|
void cancelAllConnectedTimer();
|
||||||
|
|
||||||
void forward( const CRefEvent* evt );
|
void forward( const CRefEvent* evt );
|
||||||
void checkDest( const CRefEvent* evt );
|
|
||||||
void checkFromServer( const CRefEvent* evt );
|
void checkFromServer( const CRefEvent* evt );
|
||||||
void notifyOthers( int socket, XWRelayMsg msg, XWREASON why );
|
void notifyOthers( int socket, XWRelayMsg msg, XWREASON why );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue