From cec6aee81b664079b91df085c16349120fb54007 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 12 Apr 2012 11:28:23 -0500 Subject: [PATCH] HPUX: Delete void * operator new(size_t) methods These were apparently needed by the HPUX compiler even though it never actually executed them. They are never used. --- src/ca/client/CASG.cpp | 7 ------- src/ca/client/bhe.cpp | 7 ------- src/ca/client/bhe.h | 1 - src/ca/client/comBuf.h | 1 - src/ca/client/getCallback.cpp | 7 ------- src/ca/client/getCopy.cpp | 7 ------- src/ca/client/msgForMultiplyDefinedPV.cpp | 7 ------- src/ca/client/msgForMultiplyDefinedPV.h | 1 - src/ca/client/nciu.cpp | 7 ------- src/ca/client/nciu.h | 1 - src/ca/client/netIO.h | 3 --- src/ca/client/netReadNotifyIO.cpp | 7 ------- src/ca/client/netSubscription.cpp | 7 ------- src/ca/client/netWriteNotifyIO.cpp | 8 -------- src/ca/client/oldAccess.h | 5 ----- src/ca/client/oldChannelNotify.cpp | 7 ------- src/ca/client/putCallback.cpp | 7 ------- src/ca/client/repeater.cpp | 7 ------- src/ca/client/repeaterClient.h | 1 - src/ca/client/syncGroup.h | 3 --- src/ca/client/syncGroupReadNotify.cpp | 7 ------- src/ca/client/syncGroupWriteNotify.cpp | 7 ------- src/ca/client/virtualCircuit.h | 1 - src/ca/legacy/pcas/generic/casMonEvent.cc | 7 ------- src/ca/legacy/pcas/generic/casMonEvent.h | 1 - src/ca/legacy/pcas/generic/casMonitor.h | 1 - src/ca/legacy/pcas/io/bsdSocket/ipIgnoreEntry.cpp | 7 ------- src/ca/legacy/pcas/io/bsdSocket/ipIgnoreEntry.h | 1 - src/ioc/db/dbCAC.h | 1 - src/ioc/db/dbChannelIO.cpp | 7 ------- src/ioc/db/dbChannelIO.h | 1 - src/ioc/db/dbPutNotifyBlocker.cpp | 7 ------- src/ioc/db/dbPutNotifyBlocker.h | 1 - src/ioc/db/dbSubscriptionIO.cpp | 7 ------- src/libCom/misc/ipAddrToAsciiAsynchronous.cpp | 8 -------- src/libCom/timer/timer.cpp | 14 -------------- src/libCom/timer/timerPrivate.h | 2 -- 37 files changed, 181 deletions(-) diff --git a/src/ca/client/CASG.cpp b/src/ca/client/CASG.cpp index 721f4b3e1..4938d2364 100644 --- a/src/ca/client/CASG.cpp +++ b/src/ca/client/CASG.cpp @@ -295,13 +295,6 @@ void CASG::exception ( } } -void * CASG::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void CASG::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/bhe.cpp b/src/ca/client/bhe.cpp index a43fe0bc7..d6f1796be 100644 --- a/src/ca/client/bhe.cpp +++ b/src/ca/client/bhe.cpp @@ -332,13 +332,6 @@ void bhe::unregisterIIU ( } } -void * bhe::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void bhe::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/bhe.h b/src/ca/client/bhe.h index 1660e485b..4da95202a 100644 --- a/src/ca/client/bhe.h +++ b/src/ca/client/bhe.h @@ -87,7 +87,6 @@ private: const epicsTime & currentTime ); bhe ( const bhe & ); bhe & operator = ( const bhe & ); - void * operator new ( size_t size ); epicsShareFunc void operator delete ( void * ); }; diff --git a/src/ca/client/comBuf.h b/src/ca/client/comBuf.h index 2da44df4c..59e38780b 100644 --- a/src/ca/client/comBuf.h +++ b/src/ca/client/comBuf.h @@ -114,7 +114,6 @@ private: unsigned nextWriteIndex; unsigned nextReadIndex; epicsUInt8 buf [ comBufSize ]; - void * operator new ( size_t size ); void operator delete ( void * ); template < class T > bool push ( const T * ); // disabled diff --git a/src/ca/client/getCallback.cpp b/src/ca/client/getCallback.cpp index 71e13cf64..05e654e30 100644 --- a/src/ca/client/getCallback.cpp +++ b/src/ca/client/getCallback.cpp @@ -90,13 +90,6 @@ void getCallback::exception ( } } -void * getCallback::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void getCallback::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/getCopy.cpp b/src/ca/client/getCopy.cpp index fb3898dc4..23a508d9a 100644 --- a/src/ca/client/getCopy.cpp +++ b/src/ca/client/getCopy.cpp @@ -105,13 +105,6 @@ void getCopy::show ( unsigned level ) const } } -void * getCopy::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void getCopy::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/msgForMultiplyDefinedPV.cpp b/src/ca/client/msgForMultiplyDefinedPV.cpp index ceb5b922e..2f1a45cde 100644 --- a/src/ca/client/msgForMultiplyDefinedPV.cpp +++ b/src/ca/client/msgForMultiplyDefinedPV.cpp @@ -73,13 +73,6 @@ void msgForMultiplyDefinedPV::operator delete ( void *pCadaver, } #endif -void * msgForMultiplyDefinedPV::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void msgForMultiplyDefinedPV::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/msgForMultiplyDefinedPV.h b/src/ca/client/msgForMultiplyDefinedPV.h index a5f190e65..45d3453ac 100644 --- a/src/ca/client/msgForMultiplyDefinedPV.h +++ b/src/ca/client/msgForMultiplyDefinedPV.h @@ -64,7 +64,6 @@ private: void transactionComplete ( const char * pHostName ); msgForMultiplyDefinedPV ( const msgForMultiplyDefinedPV & ); msgForMultiplyDefinedPV & operator = ( const msgForMultiplyDefinedPV & ); - void * operator new ( size_t size ); void operator delete ( void * ); }; diff --git a/src/ca/client/nciu.cpp b/src/ca/client/nciu.cpp index 452fb1549..4efe6f5ab 100644 --- a/src/ca/client/nciu.cpp +++ b/src/ca/client/nciu.cpp @@ -94,13 +94,6 @@ void nciu::destroy ( this->cacCtx.destroyChannel ( guard, *this ); } -void * nciu::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void nciu::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/nciu.h b/src/ca/client/nciu.h index f5aeca483..0e83e9f96 100644 --- a/src/ca/client/nciu.h +++ b/src/ca/client/nciu.h @@ -270,7 +270,6 @@ private: epicsGuard < epicsMutex > & guard ) const throw (); nciu ( const nciu & ); nciu & operator = ( const nciu & ); - void * operator new ( size_t ); void operator delete ( void * ); }; diff --git a/src/ca/client/netIO.h b/src/ca/client/netIO.h index 75ebd6c04..e728d2a1a 100644 --- a/src/ca/client/netIO.h +++ b/src/ca/client/netIO.h @@ -106,7 +106,6 @@ private: const unsigned mask; bool subscribed; class netSubscription * isSubscription (); - void * operator new ( size_t ); void operator delete ( void * ); void * operator new ( size_t, tsFreeList < class netSubscription, 1024, epicsMutexNOOP > & ); @@ -147,7 +146,6 @@ protected: private: cacReadNotify & notify; class privateInterfaceForIO & privateChanForIO; - void * operator new ( size_t ); void operator delete ( void * ); void * operator new ( size_t, tsFreeList < class netReadNotifyIO, 1024, epicsMutexNOOP > & ); @@ -190,7 +188,6 @@ protected: private: cacWriteNotify & notify; privateInterfaceForIO & privateChanForIO; - void * operator new ( size_t ); void operator delete ( void * ); void * operator new ( size_t, tsFreeList < class netWriteNotifyIO, 1024, epicsMutexNOOP > & ); diff --git a/src/ca/client/netReadNotifyIO.cpp b/src/ca/client/netReadNotifyIO.cpp index d8f893256..2e4b8ead6 100644 --- a/src/ca/client/netReadNotifyIO.cpp +++ b/src/ca/client/netReadNotifyIO.cpp @@ -119,13 +119,6 @@ void netReadNotifyIO::forceSubscriptionUpdate ( { } -void * netReadNotifyIO::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void netReadNotifyIO::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/netSubscription.cpp b/src/ca/client/netSubscription.cpp index b239595c7..fe2426a89 100644 --- a/src/ca/client/netSubscription.cpp +++ b/src/ca/client/netSubscription.cpp @@ -170,13 +170,6 @@ void netSubscription::forceSubscriptionUpdate ( guard, chan, *this ); } -void * netSubscription::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void netSubscription::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/netWriteNotifyIO.cpp b/src/ca/client/netWriteNotifyIO.cpp index 912f67eb6..afa9996d5 100644 --- a/src/ca/client/netWriteNotifyIO.cpp +++ b/src/ca/client/netWriteNotifyIO.cpp @@ -117,14 +117,6 @@ void netWriteNotifyIO::forceSubscriptionUpdate ( { } -void * netWriteNotifyIO::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( - "why is the compiler calling private operator new" ); -} - void netWriteNotifyIO::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/oldAccess.h b/src/ca/client/oldAccess.h index d18a4fe1b..ff4f36e4a 100644 --- a/src/ca/client/oldAccess.h +++ b/src/ca/client/oldAccess.h @@ -162,7 +162,6 @@ private: unsigned type, arrayElementCount count ); oldChannelNotify ( const oldChannelNotify & ); oldChannelNotify & operator = ( const oldChannelNotify & ); - void * operator new ( size_t size ); void operator delete ( void * ); }; @@ -195,7 +194,6 @@ private: const char *pContext, unsigned type, arrayElementCount count ); getCopy ( const getCopy & ); getCopy & operator = ( const getCopy & ); - void * operator new ( size_t size ); void operator delete ( void * ); }; @@ -221,7 +219,6 @@ private: const char * pContext, unsigned type, arrayElementCount count ); getCallback ( const getCallback & ); getCallback & operator = ( const getCallback & ); - void * operator new ( size_t size ); void operator delete ( void * ); }; @@ -245,7 +242,6 @@ private: unsigned type, arrayElementCount count ); putCallback ( const putCallback & ); putCallback & operator = ( const putCallback & ); - void * operator new ( size_t size ); void operator delete ( void * ); }; @@ -278,7 +274,6 @@ private: const char *pContext, unsigned type, arrayElementCount count ); oldSubscription ( const oldSubscription & ); oldSubscription & operator = ( const oldSubscription & ); - void * operator new ( size_t size ); void operator delete ( void * ); }; diff --git a/src/ca/client/oldChannelNotify.cpp b/src/ca/client/oldChannelNotify.cpp index 9482ce52b..508792b2e 100644 --- a/src/ca/client/oldChannelNotify.cpp +++ b/src/ca/client/oldChannelNotify.cpp @@ -159,13 +159,6 @@ void oldChannelNotify::writeException ( __FILE__, __LINE__, *this, type, count, CA_OP_PUT ); } -void * oldChannelNotify::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void oldChannelNotify::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/putCallback.cpp b/src/ca/client/putCallback.cpp index 950ca8ee4..ba17a654c 100644 --- a/src/ca/client/putCallback.cpp +++ b/src/ca/client/putCallback.cpp @@ -90,13 +90,6 @@ void putCallback::exception ( } } -void * putCallback::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void putCallback::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/repeater.cpp b/src/ca/client/repeater.cpp index 1123b8a7f..ef271e461 100644 --- a/src/ca/client/repeater.cpp +++ b/src/ca/client/repeater.cpp @@ -245,13 +245,6 @@ repeaterClient::~repeaterClient () #endif } -void * repeaterClient::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void repeaterClient::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/repeaterClient.h b/src/ca/client/repeaterClient.h index c57aeaefe..faaf0809f 100644 --- a/src/ca/client/repeaterClient.h +++ b/src/ca/client/repeaterClient.h @@ -64,7 +64,6 @@ private: osiSockAddr from; SOCKET sock; unsigned short port () const; - void * operator new ( size_t size ); void operator delete ( void * ); }; diff --git a/src/ca/client/syncGroup.h b/src/ca/client/syncGroup.h index 0f2b07c46..ab4d7b6df 100644 --- a/src/ca/client/syncGroup.h +++ b/src/ca/client/syncGroup.h @@ -104,7 +104,6 @@ private: cacChannel::ioid id; bool idIsValid; bool ioComplete; - void * operator new ( size_t ); void operator delete ( void * ); void * operator new ( size_t, tsFreeList < class syncGroupReadNotify, 128, epicsMutexNOOP > & ); @@ -145,7 +144,6 @@ private: cacChannel::ioid id; bool idIsValid; bool ioComplete; - void * operator new ( size_t ); void operator delete ( void * ); void * operator new ( size_t, tsFreeList < class syncGroupWriteNotify, 128, epicsMutexNOOP > & ); @@ -215,7 +213,6 @@ private: CASG ( const CASG & ); CASG & operator = ( const CASG & ); - void * operator new ( size_t size ); void operator delete ( void * ); ~CASG (); diff --git a/src/ca/client/syncGroupReadNotify.cpp b/src/ca/client/syncGroupReadNotify.cpp index 50c76b8f6..5d2be25c6 100644 --- a/src/ca/client/syncGroupReadNotify.cpp +++ b/src/ca/client/syncGroupReadNotify.cpp @@ -122,13 +122,6 @@ void syncGroupReadNotify::show ( } } -void * syncGroupReadNotify::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void syncGroupReadNotify::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/syncGroupWriteNotify.cpp b/src/ca/client/syncGroupWriteNotify.cpp index 8f6505846..7c0c582e9 100644 --- a/src/ca/client/syncGroupWriteNotify.cpp +++ b/src/ca/client/syncGroupWriteNotify.cpp @@ -112,13 +112,6 @@ void syncGroupWriteNotify::show ( } } -void * syncGroupWriteNotify::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void syncGroupWriteNotify::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/client/virtualCircuit.h b/src/ca/client/virtualCircuit.h index 2af1615cd..017b99d0e 100644 --- a/src/ca/client/virtualCircuit.h +++ b/src/ca/client/virtualCircuit.h @@ -335,7 +335,6 @@ private: tcpiiu ( const tcpiiu & ); tcpiiu & operator = ( const tcpiiu & ); - void * operator new ( size_t size ); void operator delete ( void * ); }; diff --git a/src/ca/legacy/pcas/generic/casMonEvent.cc b/src/ca/legacy/pcas/generic/casMonEvent.cc index 064bb0fdb..09b0131a0 100644 --- a/src/ca/legacy/pcas/generic/casMonEvent.cc +++ b/src/ca/legacy/pcas/generic/casMonEvent.cc @@ -57,13 +57,6 @@ void casMonEvent::operator delete ( void * pCadaver, } #endif -void * casMonEvent::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void casMonEvent::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/legacy/pcas/generic/casMonEvent.h b/src/ca/legacy/pcas/generic/casMonEvent.h index 686d27ed3..23db817e7 100644 --- a/src/ca/legacy/pcas/generic/casMonEvent.h +++ b/src/ca/legacy/pcas/generic/casMonEvent.h @@ -49,7 +49,6 @@ public: private: class casMonitor & monitor; smartConstGDDPointer pValue; - void * operator new ( size_t ); void operator delete ( void * ); caStatus cbFunc ( casCoreClient &, diff --git a/src/ca/legacy/pcas/generic/casMonitor.h b/src/ca/legacy/pcas/generic/casMonitor.h index 82261a017..aa4ef090e 100644 --- a/src/ca/legacy/pcas/generic/casMonitor.h +++ b/src/ca/legacy/pcas/generic/casMonitor.h @@ -87,7 +87,6 @@ private: unsigned char nPend; bool destroyPending; bool ovf; - void * operator new ( size_t ); void operator delete ( void * ); casMonitor ( const casMonitor & ); casMonitor & operator = ( const casMonitor & ); diff --git a/src/ca/legacy/pcas/io/bsdSocket/ipIgnoreEntry.cpp b/src/ca/legacy/pcas/io/bsdSocket/ipIgnoreEntry.cpp index c01b7fd98..9c7f06336 100644 --- a/src/ca/legacy/pcas/io/bsdSocket/ipIgnoreEntry.cpp +++ b/src/ca/legacy/pcas/io/bsdSocket/ipIgnoreEntry.cpp @@ -67,13 +67,6 @@ void ipIgnoreEntry::operator delete ( void * pCadaver, } #endif -void * ipIgnoreEntry::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void ipIgnoreEntry::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/ca/legacy/pcas/io/bsdSocket/ipIgnoreEntry.h b/src/ca/legacy/pcas/io/bsdSocket/ipIgnoreEntry.h index ace835dd7..bf9ee4791 100644 --- a/src/ca/legacy/pcas/io/bsdSocket/ipIgnoreEntry.h +++ b/src/ca/legacy/pcas/io/bsdSocket/ipIgnoreEntry.h @@ -44,7 +44,6 @@ private: unsigned ipAddr; ipIgnoreEntry ( const ipIgnoreEntry & ); ipIgnoreEntry & operator = ( const ipIgnoreEntry & ); - void * operator new ( size_t size ); void operator delete ( void * ); }; diff --git a/src/ioc/db/dbCAC.h b/src/ioc/db/dbCAC.h index 1748b2823..2ab3aacc3 100644 --- a/src/ioc/db/dbCAC.h +++ b/src/ioc/db/dbCAC.h @@ -110,7 +110,6 @@ private: dbSubscriptionIO ( const dbSubscriptionIO & ); dbSubscriptionIO & operator = ( const dbSubscriptionIO & ); virtual ~dbSubscriptionIO (); - void * operator new ( size_t size ); void operator delete ( void * ); }; diff --git a/src/ioc/db/dbChannelIO.cpp b/src/ioc/db/dbChannelIO.cpp index 21f92663c..c9d16f53e 100644 --- a/src/ioc/db/dbChannelIO.cpp +++ b/src/ioc/db/dbChannelIO.cpp @@ -204,13 +204,6 @@ void * dbChannelIO::operator new ( size_t size, return freeList.allocate ( size ); } -void * dbChannelIO::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - #ifdef CXX_PLACEMENT_DELETE void dbChannelIO::operator delete ( void *pCadaver, tsFreeList < dbChannelIO, 256, epicsMutexNOOP > & freeList ) diff --git a/src/ioc/db/dbChannelIO.h b/src/ioc/db/dbChannelIO.h index 0473962ba..b0398408e 100644 --- a/src/ioc/db/dbChannelIO.h +++ b/src/ioc/db/dbChannelIO.h @@ -111,7 +111,6 @@ private: epicsGuard < epicsMutex > & ) const; dbChannelIO ( const dbChannelIO & ); dbChannelIO & operator = ( const dbChannelIO & ); - void * operator new ( size_t size ); void operator delete ( void * ); }; diff --git a/src/ioc/db/dbPutNotifyBlocker.cpp b/src/ioc/db/dbPutNotifyBlocker.cpp index 87bf88886..38e505a43 100644 --- a/src/ioc/db/dbPutNotifyBlocker.cpp +++ b/src/ioc/db/dbPutNotifyBlocker.cpp @@ -212,13 +212,6 @@ void * dbPutNotifyBlocker::operator new ( size_t size, return freeList.allocate ( size ); } -void * dbPutNotifyBlocker::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - #ifdef CXX_PLACEMENT_DELETE void dbPutNotifyBlocker::operator delete ( void *pCadaver, tsFreeList < dbPutNotifyBlocker, 64, epicsMutexNOOP > & freeList ) diff --git a/src/ioc/db/dbPutNotifyBlocker.h b/src/ioc/db/dbPutNotifyBlocker.h index da2cc9fcb..620a86da3 100644 --- a/src/ioc/db/dbPutNotifyBlocker.h +++ b/src/ioc/db/dbPutNotifyBlocker.h @@ -82,7 +82,6 @@ private: dbPutNotifyBlocker ( const dbPutNotifyBlocker & ); dbPutNotifyBlocker & operator = ( const dbPutNotifyBlocker & ); virtual ~dbPutNotifyBlocker (); - void * operator new ( size_t size ); void operator delete ( void * ); }; diff --git a/src/ioc/db/dbSubscriptionIO.cpp b/src/ioc/db/dbSubscriptionIO.cpp index 99085dbde..3696fa5a5 100644 --- a/src/ioc/db/dbSubscriptionIO.cpp +++ b/src/ioc/db/dbSubscriptionIO.cpp @@ -94,13 +94,6 @@ void dbSubscriptionIO::channelDeleteException ( this->chan.pName(guard), this->type, this->count ); } -void * dbSubscriptionIO::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void dbSubscriptionIO::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/libCom/misc/ipAddrToAsciiAsynchronous.cpp b/src/libCom/misc/ipAddrToAsciiAsynchronous.cpp index 8f79a063c..91359d1f3 100644 --- a/src/libCom/misc/ipAddrToAsciiAsynchronous.cpp +++ b/src/libCom/misc/ipAddrToAsciiAsynchronous.cpp @@ -61,7 +61,6 @@ private: bool pending; void ipAddrToAscii ( const osiSockAddr &, ipAddrToAsciiCallBack & ); void release (); - void * operator new ( size_t ); void operator delete ( void * ); friend class ipAddrToAsciiEnginePrivate; ipAddrToAsciiTransactionPrivate & operator = ( const ipAddrToAsciiTransactionPrivate & ); @@ -272,13 +271,6 @@ inline void ipAddrToAsciiTransactionPrivate::operator delete ( void * pTrans, ts } #endif -void * ipAddrToAsciiTransactionPrivate::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void ipAddrToAsciiTransactionPrivate::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/libCom/timer/timer.cpp b/src/libCom/timer/timer.cpp index baab6aa16..3f4b2aff6 100644 --- a/src/libCom/timer/timer.cpp +++ b/src/libCom/timer/timer.cpp @@ -221,13 +221,6 @@ void timer::show ( unsigned int level ) const } } -void * timer::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void timer::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if @@ -239,13 +232,6 @@ void timer::operator delete ( void * ) __FILE__, __LINE__ ); } -void * epicsTimerForC::operator new ( size_t ) -{ - // The HPUX compiler seems to require this even though no code - // calls it directly - throw std::logic_error ( "why is the compiler calling private operator new" ); -} - void epicsTimerForC::operator delete ( void * ) { // Visual C++ .net appears to require operator delete if diff --git a/src/libCom/timer/timerPrivate.h b/src/libCom/timer/timerPrivate.h index 9283ae4ee..5533647e3 100644 --- a/src/libCom/timer/timerPrivate.h +++ b/src/libCom/timer/timerPrivate.h @@ -60,7 +60,6 @@ private: // because if I declare placement new and delete, but // comment out the placement delete definition there are // no undefined symbols. - void * operator new ( size_t size ); void operator delete ( void * ); friend class timerQueue; }; @@ -83,7 +82,6 @@ private: // because if I declare placement new and delete, but // comment out the placement delete definition there are // no undefined symbols. - void * operator new ( size_t size ); void operator delete ( void * ); friend class timerQueue; };