Commit 3bf6cba7 authored by Pavel Pochobut's avatar Pavel Pochobut

cleaned up unused code

parent 80731aa0
...@@ -679,23 +679,6 @@ private bool ChangeState(State oldState, State newState) ...@@ -679,23 +679,6 @@ private bool ChangeState(State oldState, State newState)
return result; return result;
} }
private void Flush()
{
var tmp = physical;
if (tmp != null)
{
try
{
Trace(connectionType + " flushed");
tmp.Flush();
}
catch (Exception ex)
{
OnInternalError(ex);
}
}
}
private PhysicalConnection GetConnection() private PhysicalConnection GetConnection()
{ {
if (state == (int)State.Disconnected) if (state == (int)State.Disconnected)
......
...@@ -164,8 +164,6 @@ public void RecordConnectionFailed(ConnectionFailureType failureType, Exception ...@@ -164,8 +164,6 @@ public void RecordConnectionFailed(ConnectionFailureType failureType, Exception
if (isCurrent && Interlocked.CompareExchange(ref failureReported, 1, 0) == 0) if (isCurrent && Interlocked.CompareExchange(ref failureReported, 1, 0) == 0)
{ {
//try
//{
int now = Environment.TickCount, lastRead = Thread.VolatileRead(ref lastReadTickCount), lastWrite = Thread.VolatileRead(ref lastWriteTickCount), int now = Environment.TickCount, lastRead = Thread.VolatileRead(ref lastReadTickCount), lastWrite = Thread.VolatileRead(ref lastWriteTickCount),
lastBeat = Thread.VolatileRead(ref lastBeatTickCount); lastBeat = Thread.VolatileRead(ref lastBeatTickCount);
...@@ -181,13 +179,6 @@ public void RecordConnectionFailed(ConnectionFailureType failureType, Exception ...@@ -181,13 +179,6 @@ public void RecordConnectionFailed(ConnectionFailureType failureType, Exception
: new RedisConnectionException(failureType, message, innerException); : new RedisConnectionException(failureType, message, innerException);
bridge.OnConnectionFailed(this, failureType, ex); bridge.OnConnectionFailed(this, failureType, ex);
// throw ex;
//}
//catch (Exception caught)
//{
// bridge.OnConnectionFailed(this, failureType, caught);
//}
} }
// cleanup // cleanup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment