Commit 1a701c17 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Get rid of marginally useful functions.

parent 92875656
......@@ -194,24 +194,6 @@ void pcdiDebugMsg2 ( const char *filename, const char *functionname, int line,
/****************************************************/
int xmaxInt ( int a, int b )
{
return a >= b ? a : b;
}
/****************************************************/
int xminInt ( int a, int b )
{
return a <= b ? a : b;
}
/****************************************************/
int xsum ( int n, int * argarray )
{
int i, sum = 0;
......
......@@ -140,8 +140,6 @@ void pcdiDebugMsg2 ( const char *filename, const char *functionname, int line, \
#define xdebugMsg2(tag,source,text) \
if ( ddebug ) pcdiDebugMsg ( __FILE__, __func__, __LINE__, tag, source, text )
int xmaxInt ( int, int );
int xminInt ( int, int );
int xsum ( int, int * );
double xchecksum ( int, int, void * );
......
......@@ -598,8 +598,8 @@ int reshListCompare ( int nsp0, int nsp1 )
LIST_INIT();
LIST_LOCK();
xassert(resHListSize > xmaxInt ( nsp0, nsp1 ) &&
xminInt ( nsp0, nsp1 ) >= 0 );
xassert(resHListSize > nsp0 && resHListSize > nsp1 &&
nsp0 >= 0 && nsp1 >= 0);
for ( i = 0; i < resHList[nsp0].size; i++ )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment