Skip to content
Snippets Groups Projects
Commit 254ad9ab authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Removed unused function taxisInit()

parent 9abbc664
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!25M214003/develop
......@@ -65,8 +65,6 @@ dup_refcount_string(char *p)
#undef container_of
static int TAXIS_Debug = 0; // If set to 1, debugging
const char *
taxisNamePtr(int taxisID)
{
......@@ -131,17 +129,6 @@ taxisNewEntry(cdiResH resH)
return taxisptr;
}
static void
taxisInit(void)
{
static bool taxisInitialized = false;
if (taxisInitialized) return;
taxisInitialized = true;
char *env = getenv("TAXIS_DEBUG");
if (env) TAXIS_Debug = atoi(env);
}
/*
@Function taxisCreate
@Title Create a Time axis
......@@ -176,17 +163,10 @@ taxisDefRtime(taxisID, 120000);
int
taxisCreate(int taxistype)
{
if (CDI_Debug) Message("taxistype: %d", taxistype);
taxisInit();
taxis_t *taxisptr = taxisNewEntry(CDI_UNDEFID);
taxisptr->type = taxistype;
int taxisID = taxisptr->self;
if (CDI_Debug) Message("taxisID: %d", taxisID);
return taxisID;
}
......@@ -232,8 +212,6 @@ taxisDuplicate(int taxisID1)
int taxisID2 = taxisptr2->self;
if (CDI_Debug) Message("taxisID2: %d", taxisID2);
ptaxisCopy(taxisptr2, taxisptr1);
return taxisID2;
......@@ -1486,8 +1464,6 @@ taxisUnpack(char *unpackBuffer, int unpackBufferSize, int *unpackBufferPos, int
xassert(cdiCheckSum(CDI_DATATYPE_INT, taxisNint, intBuffer) == d);
taxisInit();
cdiResH targetID = force_id ? adaptKey(intBuffer[TAXIS_PACK_INT_SELF]) : CDI_UNDEFID;
taxisP = taxisNewEntry(targetID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment