--------------------- PatchSet 6193 Date: 2007/11/27 18:07:45 Author: chtsanti Branch: async-calls Tag: (none) Log: Remove AsyncCall() and AsyncCallWrapper() macros. They are no used. Members: src/AsyncCall.h:1.3.22.7->1.3.22.8 Index: squid3/src/AsyncCall.h =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/AsyncCall.h,v retrieving revision 1.3.22.7 retrieving revision 1.3.22.8 diff -u -r1.3.22.7 -r1.3.22.8 --- squid3/src/AsyncCall.h 21 Nov 2007 21:48:15 -0000 1.3.22.7 +++ squid3/src/AsyncCall.h 27 Nov 2007 18:07:45 -0000 1.3.22.8 @@ -1,6 +1,6 @@ /* - * $Id: AsyncCall.h,v 1.3.22.7 2007/11/21 21:48:15 chtsanti Exp $ + * $Id: AsyncCall.h,v 1.3.22.8 2007/11/27 18:07:45 chtsanti Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -58,24 +58,6 @@ // See AsyncCall.cc for a usage sketch. -// Make an asynchronous object->callName() call. -#define AsyncCall(debugSection, debugLevel, objectPtr, callName) \ - scheduleAsyncCall((debugSection), (debugLevel), __FILE__, __LINE__, \ - (objectPtr), #callName, \ - &(callName ## Wrapper)) - -// Declare and define a wrapper for an asynchronous call handler method -#define AsyncCallWrapper(debugSection, debugLevel, ClassName, callName) \ -static \ -void callName ## Wrapper(void *data) { \ - ClassName *objectPtr = static_cast(data); \ - if (enterAsyncCallWrapper((debugSection), (debugLevel), data, #ClassName, #callName)) { \ - objectPtr->callName(); \ - exitAsyncCallWrapper((debugSection), (debugLevel), data, #ClassName, #callName); \ - } \ -} - - // Hint: to customize debugging of asynchronous messages in a class, provide // class method called scheduleAsyncCall, enterAsyncCallWrapper, and/or // exitAsyncCallWrapper. Class method will take priority over these globals. @@ -160,7 +142,6 @@ class AsyncCallBase { public: - AsyncCallWrapper(0, 0, AsyncCallBase, fire); // nedded for AsyncCall macro static void fireWrapper2(void *data) { // debugs(0,0, HERE << "data=" << data);