Changeset 1877 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Oct 11, 2015, 11:43:27 PM (10 years ago)
Author:
Gregg Young
Message:

Remove debug code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1876 r1877  
    348348
    349349    // Walk down directory tree, expanding as needed
    350     //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec needs expand, szDirArg \"%s\", IsFleshWorkListEmpty %u", szDirArg, IsFleshWorkListEmpty()); // 2015-08-04 SHL FIXME debug
    351 
    352350    strcpy(szDir, szDirArg);
    353351    p = szDir + 3;                      // Point after root backslash
     
    364362                           TRUE);               // noenv
    365363      if (!pciP || (INT)pciP == -1) {
    366         //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec FindCnrRecord(\"%s\") returned pciP %p", szDir, pciP); // 2015-08-04 SHL FIXME debug
    367364        WaitFleshWorkListEmpty(szDirArg, 240);  // 2015-08-23 SHL
    368365        break;                                  // No match
    369366      }
    370 
    371       //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec FindCnrRecord(\"%s\") returned %p \"%s\"", szDir, pciP, pciP->pszFileName); // 2015-08-04 SHL FIXME debug
    372 
    373367      if (!stricmp(szDirArg, pciP->pszFileName)) {
    374368        pci = pciP;
     
    380374
    381375      if (~pciP->rc.flRecordAttr & CRA_EXPANDED) {
    382         //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec expanding \"%s\"", pciP->pszFileName); // 2015-08-04 SHL FIXME debug
    383376        WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciP), MPVOID);
    384377      }
     
    401394
    402395  } // for
    403 
    404   //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec retries %u pci %p pci->pszFileName \"%s\"",retries, pci, pci && (INT)pci != -1 ? pci->pszFileName : "(null)"); // 2015-08-04 SHL FIXME debug
    405 
    406396  if (found) {
    407397    // Found it
     
    447437    if (pciToSelect && (INT) pciToSelect != -1) {
    448438      if (fSwitchTreeExpand && ~pciToSelect->rc.flRecordAttr & CRA_EXPANDED) {
    449         // 2015-08-23 SHL FIXME debug
    450         //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec WinSendMsg(CM_EXPANDTREE, %p)", pciToSelect); // 2015-08-04 SHL FIXME debug
    451439        WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciToSelect), MPVOID);
    452440      }
     
    455443          WaitFleshWorkListEmpty(NULL, 240); //Let the root expand first otherwise it makes top
    456444        }
    457         // 2015-08-23 SHL FIXME debug
    458         //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec ShowCnrRecord(%p) filename %s", pciToSelect, pciToSelect->pszFileName); // 2015-08-04 SHL FIXME debug
    459445        ShowCnrRecord(hwndCnr, (PMINIRECORDCORE)pciToSelect);
    460446      }
     
    462448      if (!quickbail) {
    463449        WaitFleshWorkListEmpty(szDirArg, 240);  // 2015-08-19 SHL try to ensure contents stable
    464         //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec WinSendMsg(CM_SETRECORDEMPHASIS, CRA_SELECTED | CRA_CURSORED) szDirArg \"%s\"", szDirArg); // 2015-08-04 SHL FIXME debug
    465450        WinSendMsg(hwndCnr,
    466451                   CM_SETRECORDEMPHASIS,
     
    746731           See RestoreDirCnrState()
    747732        */
    748         //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug
    749         //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME \"%s\")", mp1); // 2015-08-04 SHL FIXME debug
    750 
    751733        if (cDirectoriesRestored > 0)
    752734          cDirectoriesRestored--;
     
    755737          BOOL tempsusp = dcd->suspendview;
    756738          BOOL tempfollow = fFollowTree;
    757           //BOOL temptop;
    758739          dcd->suspendview = TRUE;
    759740          fFollowTree = FALSE;
    760 #if 0     // 2015-09-20 GKY This doesn't appear to be needed since maketop is always TRUE
    761           if (mp2) {
    762             temptop = fTopDir;
    763             fTopDir = TRUE;
    764           }
    765 #endif
    766           //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME calling ShowTreeRec(\"%s\")", mp1); // 2015-08-04 SHL FIXME debug
    767741          priority_idle(); // 2015-09-26 GKY Majority of work done by Flesh and UI threads
    768742          ShowTreeRec(dcd->hwndCnr, (CHAR *)mp1, fCollapseFirst, TRUE);
    769743          priority_normal();
    770           //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME calling PostMsg(IDM_UPDATE)"); // 2015-08-04 SHL FIXME debug
    771744          PostMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_UPDATE, 0), MPVOID);
    772745
    773746          dcd->suspendview = (USHORT)tempsusp;  // Restore
    774747          fFollowTree = tempfollow;             // Restore
    775 #if 0
    776           if (mp2)
    777             fTopDir = temptop;                  // Restore
    778 #endif
    779748        }
    780749      }
     
    831800      priority_idle();
    832801      if (SHORT1FROMMP(mp1) == IDM_EXPAND) {
    833         //DbgMsg(pszSrcFile, __LINE__,"UM_EXPAND Start");
    834802        fExpandAll = TRUE;
    835803        while (fExpanding) { // Not serialized not practical to wait on very large directories
     
    840808          fExpanding = ExpandAll(dcd->hwndCnr, x, (PCNRITEM) mp2);
    841809          DosSleep(240);
    842           //DbgMsg(pszSrcFile, __LINE__,"UM_EXPAND fExpanding %i count %i", fExpanding, x);
    843810        }
    844811        fExpandAll = FALSE;
     
    1011978              WaitFleshWorkListEmpty(pci->pszFileName, 240);    // 2015-08-19 SHL in case pci still in work list
    1012979              if ((toupper(*pci->pszFileName) - 'A') > 1)  {
    1013                 DbgMsg(pszSrcFile, __LINE__,"UM_RESCAN2 UnFlesh %s", pci->pszFileName);
    1014980                AddFleshWorkRequest(hwnd, pci, eUnFlesh);
    1015981              }
     
    10381004                 CM_SCROLLWINDOW,
    10391005                 MPFROMSHORT(CMA_HORIZONTAL), MPFROMLONG(-1));
    1040       //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc FillTreeCnr()"); // 2015-08-04 SHL FIXME debug
    10411006      FillTreeCnr(dcd->hwndCnr, dcd->hwndParent);
    10421007      if (fOkayMinimize) {
     
    10471012                 CM_INVALIDATERECORD,
    10481013                 MPVOID, MPFROM2SHORT(0, CMA_ERASE | CMA_REPOSITION));
    1049       //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc PostMsg(UM_RESCAN)"); // 2015-08-04 SHL FIXME debug
    10501014      PostMsg(dcd->hwndCnr, UM_RESCAN, MPVOID, MPVOID);
    10511015    }
     
    19851949
    19861950      if (dir) {
    1987         //DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc UM_SHOWME PostMsg(UM_SHOWME, %s)", dir); // 2015-08-13 SHL FIXME debug
    19881951        if (!PostMsg(dcd->hwndObject, UM_SHOWME, MPFROMP(dir), MPVOID))
    19891952          free(dir);
     
    22752238            chDrvU = *pci->pszFileName;
    22762239            chDrvU = toupper(chDrvU);
    2277             //DbgMsg(pszSrcFile, __LINE__,"IDM_FILESMENU prevalid drive %s file %s",
    2278             //       szDrv, pci->pszFileName);
    22792240            MakeValidDir(szDrv);
    22802241            rdy = *szDrv == chDrvU;     // Drive not ready if MakeValidDir changes drive letter
     
    22852246            local = rdy && (!(driveflags[chDrvU - 'A'] & (DRIVE_REMOTE | DRIVE_VIRTUAL)));
    22862247            underenv = (pci->flags & RECFLAGS_UNDERENV) != 0;
    2287             //DbgMsg(pszSrcFile, __LINE__,"IDM_FILESMENU postvalid drive %s rdy %i removable %i writeable %i local %i underenv %i",
    2288             //       szDrv, rdy, removable, writeable, local, underenv);
    22892248            CopyPresParams((HWND) mp2, hwndMainMenu);
    22902249            WinEnableMenuItem((HWND) mp2, IDM_INFO, rdy);
     
    24332392  case UM_DRIVECMD:
    24342393    if (mp1) {
    2435       DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc UM_DRIVECMD ShowTreeRec(\"%s\")", mp1);
    24362394      ShowTreeRec(hwnd, (CHAR *)mp1, FALSE, TRUE);
    2437       DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc PostMsg(IDM_UPDATE)");
    24382395      PostMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_UPDATE, 0), MPVOID);
    24392396    }
     
    29022859              if (pci->fleshed) {
    29032860                if (x > 1) {
    2904                   DbgMsg(pszSrcFile, __LINE__,"UM_UPDATE UnFlesh %s", pci->pszFileName);
    29052861                  AddFleshWorkRequest(hwnd, pci, eUnFlesh);
    29062862                }
     
    32723228    break; // WM_DESTROY
    32733229  } // switch
    3274   //DbgMsg(pszSrcFile, __LINE__,"return oldproc msg %i mp1 %p mp2 %p", msg, mp1, mp2);
    32753230  if (dcd && dcd->oldproc){
    32763231    return dcd->oldproc(hwnd, msg, mp1, mp2);
     
    35163471            }
    35173472            else if (qmsg.msg == UM_EXPANDTREE) {
    3518               // 2015-08-04 SHL
    3519               //DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc qmsg.msg == UM_EXPANDTREE %p pci %p %s",
    3520               //       qmsg.hwnd, pci, pci->pszFileName);
    35213473              if (fExpandAll)
    35223474                DosSleep(1);
     
    35263478              AddFleshWorkRequest(dcd->hwndCnr, pci, eFlesh);   // forceFlesh
    35273479              if (!dcd->suspendview && fTopDir) {
    3528                 //DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc UM_TOPDIR %p pci %p %s",
    3529                 //       qmsg.hwnd, pci, pci->pszFileName);  // 2015-08-04 SHL FIXME debug
    35303480                PostMsg(dcd->hwndCnr, UM_TOPDIR, MPFROMP(pci), MPVOID);
    35313481              }
    35323482            }
    35333483            if (qmsg.msg == UM_EXPANDTREE && !dcd->suspendview) {
    3534               //DbgMsg(pszSrcFile, __LINE__, "UM_FILTER %p pci %p %s",
    3535               //       dcd->hwndCnr, pci, pci->pszFileName);
    35363484              WinSendMsg(dcd->hwndCnr, UM_FILTER, MPVOID, MPVOID);
    35373485            }
Note: See TracChangeset for help on using the changeset viewer.