activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r548456 - in /activemq/activemq-cpp/trunk/src/main/activemq/transport: MockTransport.cpp MockTransport.h
Date Mon, 18 Jun 2007 19:17:06 GMT
Author: tabish
Date: Mon Jun 18 12:17:05 2007
New Revision: 548456

URL: http://svn.apache.org/viewvc?view=rev&rev=548456
Log:
https://issues.apache.org/activemq/browse/AMQCPP-130

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransport.cpp
    activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransport.h

Modified: activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransport.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransport.cpp?view=diff&rev=548456&r1=548455&r2=548456
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransport.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransport.cpp Mon Jun 18 12:17:05
2007
@@ -16,16 +16,12 @@
  */
 
 #include <activemq/transport/MockTransport.h>
-#include <activemq/support/LibraryInit.h>
 
 using namespace activemq;
 using namespace activemq::transport;
 using namespace activemq::exceptions;
 
 ////////////////////////////////////////////////////////////////////////////////
-MockTransport* MockTransport::instance = NULL;
-
-////////////////////////////////////////////////////////////////////////////////
 MockTransport::MockTransport( ResponseBuilder* responseBuilder ,
                               bool own,
                               bool useDefOutgoing ){
@@ -37,7 +33,6 @@
     this->responseBuilder = responseBuilder;
     this->own = own;
     this->nextCommandId = 0;
-    this->instance = this;
     if( useDefOutgoing )
     {
         this->outgoingCommandListener = &defaultListener;

Modified: activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransport.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransport.h?view=diff&rev=548456&r1=548455&r2=548456
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransport.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/transport/MockTransport.h Mon Jun 18 12:17:05
2007
@@ -174,13 +174,8 @@
         concurrent::Mutex commandIdMutex;
         bool own;
         InternalCommandListener defaultListener;
-        static MockTransport* instance;
 
     public:
-
-        static MockTransport* getInstance() {
-            return instance;
-        }
 
         MockTransport( ResponseBuilder* responseBuilder ,
                        bool own = false,



Mime
View raw message