Clean up unused code warnings from Clang
This commit is contained in:
@@ -149,9 +149,9 @@ cac::cac (
|
||||
iiuExistenceCount ( 0u ),
|
||||
cacShutdownInProgress ( false )
|
||||
{
|
||||
if ( ! osiSockAttach () ) {
|
||||
throwWithLocation ( caErrorCode (ECA_INTERNAL) );
|
||||
}
|
||||
if ( ! osiSockAttach () ) {
|
||||
throwWithLocation ( udpiiu :: noSocket () );
|
||||
}
|
||||
|
||||
try {
|
||||
long status;
|
||||
|
||||
@@ -61,13 +61,6 @@ static const double CA_CONN_VERIFY_PERIOD = 30.0; /* (sec) how often to request
|
||||
*/
|
||||
static const unsigned contiguousMsgCountWhichTriggersFlowControl = 10u;
|
||||
|
||||
class caErrorCode {
|
||||
public:
|
||||
caErrorCode ( int status ) : code ( status ) {};
|
||||
private:
|
||||
int code;
|
||||
};
|
||||
|
||||
/*
|
||||
* CA internal functions
|
||||
*/
|
||||
|
||||
@@ -44,9 +44,6 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
const unsigned mSecPerSec = 1000u;
|
||||
const unsigned uSecPerSec = 1000u * mSecPerSec;
|
||||
|
||||
tcpSendThread::tcpSendThread (
|
||||
class tcpiiu & iiuIn, const char * pName,
|
||||
unsigned stackSize, unsigned priority ) :
|
||||
@@ -805,28 +802,6 @@ tcpiiu::tcpiiu (
|
||||
}
|
||||
}
|
||||
|
||||
# if 0
|
||||
//
|
||||
// windows has a really strange implementation of thess options
|
||||
// and we can avoid the need for this by using pthread_kill on unix
|
||||
//
|
||||
{
|
||||
struct timeval timeout;
|
||||
double pollInterval = connectionTimeout / 8.0;
|
||||
timeout.tv_sec = static_cast < long > ( pollInterval );
|
||||
timeout.tv_usec = static_cast < long >
|
||||
( ( pollInterval - timeout.tv_sec ) * uSecPerSec );
|
||||
// intentionally ignore status as we dont expect that all systems
|
||||
// will accept this request
|
||||
setsockopt ( this->sock, SOL_SOCKET, SO_SNDTIMEO,
|
||||
( char * ) & timeout, sizeof ( timeout ) );
|
||||
// intentionally ignore status as we dont expect that all systems
|
||||
// will accept this request
|
||||
setsockopt ( this->sock, SOL_SOCKET, SO_RCVTIMEO,
|
||||
( char * ) & timeout, sizeof ( timeout ) );
|
||||
}
|
||||
# endif
|
||||
|
||||
if ( isNameService() ) {
|
||||
pSearchDest->setCircuit ( this );
|
||||
}
|
||||
|
||||
@@ -34,8 +34,6 @@ const nothrow_t nothrow ;
|
||||
}
|
||||
#endif
|
||||
|
||||
static const caHdr nill_msg = { 0u, 0u, 0u, 0u, 0u, 0u };
|
||||
|
||||
casStrmClient::pCASMsgHandler const casStrmClient::msgHandlers[] =
|
||||
{
|
||||
& casStrmClient::versionAction,
|
||||
|
||||
@@ -34,9 +34,6 @@
|
||||
|
||||
#include "logClient.h"
|
||||
|
||||
static const int logClientSuccess = 0;
|
||||
static const int logClientError = -1;
|
||||
|
||||
typedef struct {
|
||||
char msgBuf[0x4000];
|
||||
struct sockaddr_in addr;
|
||||
|
||||
@@ -198,14 +198,6 @@ static inline double MAX(double a, double b, double c, double d, double e,
|
||||
double f, double g, double h, double i, double j) {
|
||||
return MAX(MAX(a,b,c,d,e,f,g,h,i),j);
|
||||
}
|
||||
static inline double MAX(double a, double b, double c, double d, double e,
|
||||
double f, double g, double h, double i, double j, double k) {
|
||||
return MAX(MAX(a,b,c,d,e,f,g,h,i,j),k);
|
||||
}
|
||||
static inline double MAX(double a, double b, double c, double d, double e,
|
||||
double f, double g, double h, double i, double j, double k, double l) {
|
||||
return MAX(MAX(a,b,c,d,e,f,g,h,i,j,k),l);
|
||||
}
|
||||
|
||||
static inline double MIN(double a) {
|
||||
return a;
|
||||
@@ -242,14 +234,6 @@ static inline double MIN(double a, double b, double c, double d, double e,
|
||||
double f, double g, double h, double i, double j) {
|
||||
return MIN(MIN(a,b,c,d,e,f,g,h,i),j);
|
||||
}
|
||||
static inline double MIN(double a, double b, double c, double d, double e,
|
||||
double f, double g, double h, double i, double j, double k) {
|
||||
return MIN(MIN(a,b,c,d,e,f,g,h,i,j),k);
|
||||
}
|
||||
static inline double MIN(double a, double b, double c, double d, double e,
|
||||
double f, double g, double h, double i, double j, double k, double l) {
|
||||
return MIN(MIN(a,b,c,d,e,f,g,h,i,j,k),l);
|
||||
}
|
||||
|
||||
/* The test code below generates lots of spurious warnings because
|
||||
* it's making sure that our operator priorities match those of C.
|
||||
|
||||
Reference in New Issue
Block a user