From aa904449c0494421493b8b7589de3239854f552b Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 24 Aug 2009 17:01:21 +0000 Subject: [PATCH] we dont need tocheck the return from new with assert --- src/ca/caConnTest.cpp | 1 - src/ca/caEventRate.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/src/ca/caConnTest.cpp b/src/ca/caConnTest.cpp index 00037ec43..21077398a 100644 --- a/src/ca/caConnTest.cpp +++ b/src/ca/caConnTest.cpp @@ -66,7 +66,6 @@ void caConnTest ( const char *pNameIn, unsigned channelCountIn, double delayIn ) channelCount = channelCountIn; pChans = new chid [channelCount]; - assert ( pChans ); while ( 1 ) { connCount = 0u; diff --git a/src/ca/caEventRate.cpp b/src/ca/caEventRate.cpp index 01326e25c..8beb16333 100644 --- a/src/ca/caEventRate.cpp +++ b/src/ca/caEventRate.cpp @@ -36,7 +36,6 @@ void caEventRate ( const char *pName, unsigned count ) unsigned eventCount = 0u; chid * pChidTable = new chid [ count ]; - assert ( pChidTable ); { printf ( "Connecting to CA Channel \"%s\" %u times.",