diff --git a/vnr/texthook/host/textthread_p.h b/vnr/texthook/host/textthread_p.h index bc1d146..759707a 100644 --- a/vnr/texthook/host/textthread_p.h +++ b/vnr/texthook/host/textthread_p.h @@ -14,12 +14,7 @@ void Release(const T &p) { delete p; } template<> \ void Release(const T &p) {} -template -struct BinaryEqual { - bool operator ()(const T &a, const T &b, DWORD) { return a == b; } -}; - -template > +template class MyVector { public: @@ -104,54 +99,11 @@ protected: LeaveCriticalSection(&cs_store); return status; } - int Find(const T &item, int start = 0, DWORD control = 0) - { - int c = -1; - for (int i=start; i < used; i++) - if (fCmp(storage[i],item,control)) { - c=i; - break; - } - //if (storage[i]==item) {c=i;break;} - return c; - } - CRITICAL_SECTION cs_store; int size, used; T *storage; - fComp fCmp; }; // EOF - -/* -#ifndef ITH_STACK -#define ITH_STACK -template -class MyStack -{ -public: - MyStack(): index(0) {} - void push_back(const T& e) - { - if (index