Changeset 1877 for trunk/dll/dircnrs.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/dircnrs.c

    r1874 r1877  
    915915      if (hwndTree) {
    916916        // 2015-08-12 SHL Optimze to update drive tree for only last saved state
    917 
    918 #if 0        // 2015-08-13 SHL
    919         if (fSwitchTreeOnDirChg)
    920           DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug
    921 #endif
    922917        if (fSwitchTreeOnDirChg) {
    923918          // Keep drive tree in sync with directory container
     
    927922            if (hwndMain) {
    928923              if (TopWindow(hwndMain, (HWND)0) == dcd->hwndFrame) {
    929                 //DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
    930924                if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID))
    931925                  free(pszTempDir);
     
    933927            }
    934928            else {
    935               //DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
    936929              if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID))
    937930                free(pszTempDir);
     
    14451438      if (fSwitchTreeOnFocus && hwndTree && dcd && *dcd->directory) {
    14461439        PSZ pszTempDir = xstrdup(dcd->directory, pszSrcFile, __LINE__);
    1447         //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug
    14481440        if (pszTempDir) {
    1449           //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS PostMsg(UM_SHOWME, %s)", pszTempDir); // 2015-08-04 SHL FIXME debug
    14501441          if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID))
    14511442            free(pszTempDir);           // Failed
     
    14661457          strcpy(dcd->previous, dcd->directory);
    14671458          strcpy(dcd->directory, fullname);
    1468           // DosEnterCritSec(); // GKY 11-27-08
    14691459          dcd->stopflag++;
    1470           // DosExitCritSec();
    1471           // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    14721460          if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
    14731461            strcpy(dcd->directory, dcd->previous);
    1474             // DosEnterCritSec(); // GKY 11-27-08
    14751462            dcd->stopflag--;
    1476             // DosExitCritSec();
    14771463          }
    14781464          else if (*dcd->directory) {
     
    14901476  case WM_TIMER:
    14911477    // Started/stopped by DirObjWndPro
    1492     // dcd = WinQueryWindowPtr(hwnd, QWL_USER);
    14931478    if (dcd) {
    14941479      commafmt(tb, sizeof(tb), dcd->totalfiles);
    14951480      CommaFmtULL(tf, sizeof(tf), dcd->ullTotalBytes, 'K');
    14961481      sprintf(s, "%s / %s", tb, tf);
    1497       // DbgMsg(pszSrcFile, __LINE__, "WM_TIMER %s", s);        // 15 Sep 09 SHL fixme debug
    14981482      WinSetDlgItemText(dcd->hwndClient, DIR_TOTALS, s);
    14991483    }
     
    16741658        }
    16751659        else
    1676           DosSleep(32); // 05 Aug 07 GKY 64
     1660          DosSleep(32);
    16771661        WinEnableMenuItem(DirCnrMenu, IDM_FINDINTREE, (hwndTree != (HWND) 0));
    16781662      }
     
    16881672  case UM_SETUP2:
    16891673    if (dcd) {
    1690       // DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc UM_SETUP2 %x", hwnd);
    16911674      AdjustCnrColsForPref(hwnd, NULL, &dcd->ds, FALSE);
    16921675      SayFilter(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
     
    19861969
    19871970          if (pszTempDir) {
    1988             //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc IDM_FINDINTREE PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
    19891971            if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir),
    19901972                            MPFROMLONG(1L)))
     
    23732355
    23742356      case IDM_RESCAN:
    2375         dcd->stopflag++;;
    2376         // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
     2357        dcd->stopflag++;
    23772358        if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPVOID)) {
    23782359          dcd->stopflag--;
     
    25092490          strcpy(dcd->directory, (CHAR *)mp2);
    25102491          dcd->stopflag++;
    2511           //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    25122492          if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
    25132493            strcpy(dcd->directory, dcd->previous);
     
    25392519              strcpy(dcd->directory, tempname2);
    25402520              dcd->stopflag++;
    2541               //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    25422521              if (!PostMsg(dcd->hwndObject,
    25432522                           UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
     
    25672546            strcpy(dcd->directory, dcd->previous);
    25682547            strcpy(dcd->previous, tempname);
    2569             dcd->stopflag++; ;
    2570             //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
     2548            dcd->stopflag++;
    25712549            if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
    25722550              strcpy(dcd->directory, dcd->previous);
     
    26022580            strcpy(dcd->directory, newdir);
    26032581            dcd->stopflag++;
    2604             //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    26052582            if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
    26062583              strcpy(dcd->directory, dcd->previous);
     
    28782855                  // 2015-08-07 SHL FIXME to wait for Flesh to finish before PostMsg
    28792856                  // 2015-09-26 GKY Waits (WaitFleshWorkListEmpty) in object window
    2880                   DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);
    28812857                  if (SHORT2FROMMP(mp1) == CN_EXPANDTREE && AddFleshWorkRequest(hwnd, pci, eFlesh) &&
    28822858                      !dcd->suspendview && fTopDir) {
    28832859                    PostMsg(dcd->hwndObject, UM_TOPDIR, MPFROMP(pci), MPVOID);
    2884                     DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);
    28852860                  }
    28862861                }
     
    28892864            }
    28902865            else if (SHORT2FROMMP(mp1) == CN_EXPANDTREE) {
    2891               DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);
    28922866              if (AddFleshWorkRequest(hwnd, pci, eFlesh) && !dcd->suspendview &&
    28932867                  fTopDir) {
     
    28952869                // 2015-09-26 GKY Waits (WaitFleshWorkListEmpty) in object window
    28962870                PostMsg(dcd->hwndObject, UM_TOPDIR, MPFROMP(pci), MPVOID);
    2897                 DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);
    28982871              }
    28992872            }
     
    34543427                  strcpy(dcd->directory, pci->pszFileName);
    34553428                  dcd->stopflag++;
    3456                   //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    34573429                  if (!PostMsg(dcd->hwndObject,
    34583430                               UM_RESCAN, MPVOID, MPFROMLONG(1))) {
     
    34983470              else {
    34993471                dcd->stopflag++;
    3500                 //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    35013472                if (!PostMsg(dcd->hwndObject,
    35023473                             UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
Note: See TracChangeset for help on using the changeset viewer.