activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1532521 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/State/ConnectionStateTracker.cs
Date Tue, 15 Oct 2013 20:30:36 GMT
Author: tabish
Date: Tue Oct 15 20:30:36 2013
New Revision: 1532521

URL: http://svn.apache.org/r1532521
Log:
fix for: https://issues.apache.org/jira/browse/AMQNET-451 remove some dead code. 

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/State/ConnectionStateTracker.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/State/ConnectionStateTracker.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/State/ConnectionStateTracker.cs?rev=1532521&r1=1532520&r2=1532521&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/State/ConnectionStateTracker.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/State/ConnectionStateTracker.cs
Tue Oct 15 20:30:36 2013
@@ -43,7 +43,6 @@ namespace Apache.NMS.ActiveMQ.State
         private bool isRestoreTransaction = true;
         private bool isTrackMessages = true;
         private int maxCacheSize = 256;
-        private int currentCacheSize;
         private readonly LRUCache<Object, Command> messageCache = new LRUCache<Object,
Command>(256);
 
         private class RemoveTransactionAction : ResponseHandler
@@ -90,21 +89,6 @@ namespace Apache.NMS.ActiveMQ.State
 
         public void TrackBack(Command command)
         {
-            if (command != null)
-            {
-                if (TrackMessages && command.IsMessage)
-                {
-                    Message message = (Message) command;
-                    if(message.TransactionId == null)
-                    {
-                        currentCacheSize = currentCacheSize + 1;
-                    }
-                }
-                else if (command.IsMessagePull)
-                {
-                    currentCacheSize = currentCacheSize + 1;
-                }
-            }
         }
 
         public void DoRestore(ITransport transport)



Mime
View raw message