Ignore:
Timestamp:
Mar 7, 2012, 2:42:57 PM (13 years ago)
Author:
ldelgass
Message:

Remove cruft - ifdef disabled code that calls nonexistant functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/Command.cpp

    r2822 r2828  
    7171
    7272#define PLANE_CMD               0
    73 #define __TEST_CODE__           0
    74 // FOR testing new functions
    75 #define _LOCAL_ZINC_TEST_       0
    76 
    77 #if _LOCAL_ZINC_TEST_
    78 /* #include "Test.h" */
    79 #endif
    8073
    8174// EXTERN DECLARATIONS
     
    11481141    nBytes = buf.size();
    11491142
    1150 #if _LOCAL_ZINC_TEST_
    1151     //FILE* fp = fopen("/home/nanohub/vrinside/nv/data/HOON/QDWL_100_100_50_strain_8000i.nd_zatom_12_1", "rb");
    1152     FILE* fp;
    1153 
    1154     fp = fopen("/home/nanohub/vrinside/nv/data/HOON/GaAs_AlGaAs_2QD_B4.nd_zc_1_wf", "rb");
    1155     if (fp == NULL) {
    1156         ERROR("cannot open the file\n");
    1157         return TCL_ERROR;
    1158     }
    1159     unsigned char* b = (unsigned char*)malloc(nBytes);
    1160     fread(b, nBytes, 1, fp);
    1161     fclose(fp);
    1162 #endif  /*_LOCAL_ZINC_TEST_*/
    11631143    TRACE("Checking header[%.20s]\n", bytes);
    11641144
    1165     Volume *volPtr;
    1166     volPtr = NULL;                      // Supress compiler warning.
    1167    
     1145    Volume *volPtr = NULL;
     1146
    11681147    if ((nBytes > 5) && (strncmp(bytes, "<HDR>", 5) == 0)) {
    11691148        TRACE("ZincBlende stream is in\n");
     
    11721151        //vol = NvZincBlendeReconstructor::getInstance()->loadFromStream(fdata);
    11731152
    1174 #if _LOCAL_ZINC_TEST_
    1175         volPtr = NvZincBlendeReconstructor::getInstance()->loadFromMemory(b);
    1176 #else
    11771153        volPtr = NvZincBlendeReconstructor::getInstance()->loadFromMemory((void*) buf.bytes());
    1178 #endif  /*_LOCAL_ZINC_TEST_*/
    11791154        if (volPtr == NULL) {
    11801155            Tcl_AppendResult(interp, "can't get volume instance", (char *)NULL);
     
    11991174        Tcl_SetHashValue(hPtr, volPtr);
    12001175        volPtr->name(Tcl_GetHashKey(&NanoVis::volumeTable, hPtr));
    1201 #if __TEST_CODE__
    1202     } else if ((nBytes > 5) && (strncmp(bytes, "<FET>", 5) == 0)) {
    1203         TRACE("FET loading...\n");
    1204         std::stringstream fdata;
    1205         fdata.write(nBytes - 5, bytes + 5);
    1206         Rappture::Outcome context;
    1207         volPtr = load_volume_stream3(context, tag, fdata);
    1208         if (volPtr == NULL) {
    1209             Tcl_AppendResult(interp, context.remark(), (char*)NULL);
    1210             return TCL_ERROR;
    1211         }
    1212 #endif  /*__TEST_CODE__*/
    12131176    } else {
    12141177        if ((nBytes > 5) && (strncmp(bytes, "<ODX>", 5) == 0)) {
     
    23942357    Tcl_CreateObjCommand(interp, "up",          UpCmd,          NULL, NULL);
    23952358    Tcl_CreateObjCommand(interp, "volume",      VolumeCmd,      NULL, NULL);
    2396 #if __TEST_CODE__
    2397     Tcl_CreateObjCommand(interp, "test", TestCmd, NULL, NULL);
    2398 #endif
     2359
    23992360    Tcl_InitHashTable(&NanoVis::volumeTable, TCL_STRING_KEYS);
    24002361    Tcl_InitHashTable(&NanoVis::heightmapTable, TCL_STRING_KEYS);
Note: See TracChangeset for help on using the changeset viewer.