revert temp logging.

This commit is contained in:
Nick Bolton 2013-04-11 05:09:17 +00:00
parent 7dcc1151c7
commit 90bd08d86c
4 changed files with 5 additions and 20 deletions

View File

@ -61,7 +61,6 @@ CClientProxy::getStream() const
CEvent::Type
CClientProxy::getReadyEvent()
{
LOG((CLOG_DEBUG4 "getReadyEvent"));
return EVENTQUEUE->registerTypeOnce(s_readyEvent,
"CClientProxy::ready");
}
@ -69,7 +68,6 @@ CClientProxy::getReadyEvent()
CEvent::Type
CClientProxy::getDisconnectedEvent()
{
LOG((CLOG_DEBUG4 "getDisconnectedEvent"));
return EVENTQUEUE->registerTypeOnce(s_disconnectedEvent,
"CClientProxy::disconnected");
}
@ -77,7 +75,6 @@ CClientProxy::getDisconnectedEvent()
CEvent::Type
CClientProxy::getClipboardChangedEvent()
{
LOG((CLOG_DEBUG4 "getClipboardChangedEvent"));
return EVENTQUEUE->registerTypeOnce(s_clipboardChangedEvent,
"CClientProxy::clipboardChanged");
}

View File

@ -89,7 +89,6 @@ CClientProxy1_3::addHeartbeatTimer()
{
// create and install a timer to periodically send keep alives
if (m_keepAliveRate > 0.0) {
LOG((CLOG_DEBUG4 "addHeartbeatTimer"));
m_keepAliveTimer = EVENTQUEUE->newTimer(m_keepAliveRate, NULL);
EVENTQUEUE->adoptHandler(CEvent::kTimer, m_keepAliveTimer,
new TMethodEventJob<CClientProxy1_3>(this,
@ -105,7 +104,6 @@ CClientProxy1_3::removeHeartbeatTimer()
{
// remove the timer that sends keep alives periodically
if (m_keepAliveTimer != NULL) {
LOG((CLOG_DEBUG4 "removeHeartbeatTimer"));
EVENTQUEUE->removeHandler(CEvent::kTimer, m_keepAliveTimer);
EVENTQUEUE->deleteTimer(m_keepAliveTimer);
m_keepAliveTimer = NULL;

View File

@ -48,7 +48,6 @@ CClientProxyUnknown::CClientProxyUnknown(synergy::IStream* stream, double timeou
{
assert(m_server != NULL);
LOG((CLOG_DEBUG4 "CClientProxyUnknown"));
EVENTQUEUE->adoptHandler(CEvent::kTimer, this,
new TMethodEventJob<CClientProxyUnknown>(this,
&CClientProxyUnknown::handleTimeout, NULL));
@ -86,7 +85,6 @@ CClientProxyUnknown::orphanClientProxy()
CEvent::Type
CClientProxyUnknown::getSuccessEvent()
{
LOG((CLOG_DEBUG4 "getSuccessEvent"));
return EVENTQUEUE->registerTypeOnce(s_successEvent,
"CClientProxy::success");
}
@ -94,7 +92,6 @@ CClientProxyUnknown::getSuccessEvent()
CEvent::Type
CClientProxyUnknown::getFailureEvent()
{
LOG((CLOG_DEBUG4 "getFailureEvent"));
return EVENTQUEUE->registerTypeOnce(s_failureEvent,
"CClientProxy::failure");
}
@ -104,7 +101,6 @@ CClientProxyUnknown::sendSuccess()
{
m_ready = true;
removeTimer();
LOG((CLOG_DEBUG4 "sendSuccess"));
EVENTQUEUE->addEvent(CEvent(getSuccessEvent(), this));
}
@ -116,7 +112,6 @@ CClientProxyUnknown::sendFailure()
m_ready = false;
removeHandlers();
removeTimer();
LOG((CLOG_DEBUG4 "sendFailure"));
EVENTQUEUE->addEvent(CEvent(getFailureEvent(), this));
}
@ -125,7 +120,6 @@ CClientProxyUnknown::addStreamHandlers()
{
assert(m_stream != NULL);
LOG((CLOG_DEBUG4 "addStreamHandlers"));
EVENTQUEUE->adoptHandler(m_stream->getInputReadyEvent(),
m_stream->getEventTarget(),
new TMethodEventJob<CClientProxyUnknown>(this,
@ -149,7 +143,6 @@ CClientProxyUnknown::addProxyHandlers()
{
assert(m_proxy != NULL);
LOG((CLOG_DEBUG4 "addProxyHandlers"));
EVENTQUEUE->adoptHandler(CClientProxy::getReadyEvent(),
m_proxy,
new TMethodEventJob<CClientProxyUnknown>(this,
@ -164,7 +157,6 @@ void
CClientProxyUnknown::removeHandlers()
{
if (m_stream != NULL) {
LOG((CLOG_DEBUG4 "removeHandlers"));
EVENTQUEUE->removeHandler(m_stream->getInputReadyEvent(),
m_stream->getEventTarget());
EVENTQUEUE->removeHandler(m_stream->getOutputErrorEvent(),
@ -175,7 +167,6 @@ CClientProxyUnknown::removeHandlers()
m_stream->getEventTarget());
}
if (m_proxy != NULL) {
LOG((CLOG_DEBUG4 "removeHandlers"));
EVENTQUEUE->removeHandler(CClientProxy::getReadyEvent(),
m_proxy);
EVENTQUEUE->removeHandler(CClientProxy::getDisconnectedEvent(),
@ -187,7 +178,6 @@ void
CClientProxyUnknown::removeTimer()
{
if (m_timer != NULL) {
LOG((CLOG_DEBUG4 "removeTimer"));
EVENTQUEUE->deleteTimer(m_timer);
EVENTQUEUE->removeHandler(CEvent::kTimer, this);
m_timer = NULL;
@ -225,7 +215,6 @@ CClientProxyUnknown::handleData(const CEvent&, void*)
// remove those later.
removeHandlers();
LOG((CLOG_DEBUG4 "handleData"));
// create client proxy for highest version supported by the client
if (major == 1) {
switch (minor) {

View File

@ -53,6 +53,7 @@ if (UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -pipe")
if (APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -arch i386")
if (DARWIN_VERSION GREATER 10)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-tautological-compare")
endif()