Changeset 1880 for trunk/dll/grep.c


Ignore:
Timestamp:
Oct 12, 2015, 8:26:16 PM (10 years ago)
Author:
Gregg Young
Message:

Remove dead code and comments from remaining c files. #if 0 and #if NEVER were not addressed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep.c

    r1780 r1880  
    323323      WinCancelShutdown(ghmq, TRUE);
    324324      IncrThreadUsage();
    325       // DosSleep(100); //05 Aug 07 GKY 128     // 07 Feb 08 SHL
    326325      // hwndStatus does not exist for applet
    327326      WinSetWindowText(hwndStatus ? hwndStatus : grep.hwndCurFile,
     
    788787                        pci, grep->dir[x], grep->insertffb[x], FALSE, dcd);
    789788    pci = (PCNRITEM) pci->rc.preccNextRecord;
    790     //SleepIfNeeded(pitdSleep, 1);
    791789    if (pci == NULL && ulRecsToInsert) {
    792790      memset(&ri, 0, sizeof(RECORDINSERT));
     
    808806    SleepIfNeeded(pitdSleep, 1);
    809807  }//for
    810     // if (grep->toinsert == FilesToGet)        // 07 Feb 08 SHL
    811     //  DosSleep(0);  //26 Aug 07 GKY 1 // 07 Feb 08 SHL
    812808    freegreplist(grep);
    813809    PostMsg(grep->hwndFiles, UM_RESCAN, MPVOID, MPVOID);
     
    10561052      }                                 // while
    10571053      Free_FEAList(head);
    1058       // DosSleep(1);                   // 07 Feb 08 SHL
    10591054    }
    10601055  }
     
    10941089      Fortify_LeaveScope();
    10951090#      endif
    1096       // DosSleep(1);                   // 07 Feb 08 SHL
    10971091    }
    10981092  } // if
     
    12031197        else
    12041198          break;
    1205         // DosSleep(0); //26 Aug 07 GKY 1       // 07 Feb 08 SHL
    12061199      }
    12071200      fclose(fp);
    1208       // DosSleep(1);                   // 07 Feb 08 SHL
    12091201    }
    12101202    free(buffer);
     
    13731365  ULONG x;
    13741366  ULONG y;
    1375   // ULONG cntr = 1000;                 // 09 Feb 08 SHL
    1376 
    1377   // if (grep->CRCdupes)                // 09 Feb 08 SHL
    1378   //  cntr = 100;                       // 09 Feb 08 SHL
     1367
    13791368  x = 0;
    13801369  for (i = grep->dupehead; i; i = i->next)
     
    13861375    else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles)
    13871376      WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPDUPESORTINGTEXT));
    1388     // DosSleep(0);  //26 Aug 07 GKY 1  // 07 Feb 08 SHL
    13891377    grep->dupenames = xmalloc(sizeof(DUPES *) * (x + 1), pszSrcFile, __LINE__);
    13901378    if (!grep->nosizedupes)
     
    14041392      InitITimer(pitdSleep, 0);         // Reset rate estimator
    14051393      SleepIfNeeded(pitdSleep, 1);
    1406       // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL
    1407 
    14081394      qsort(grep->dupenames,
    14091395            x,
     
    14111397            grep->ignoreextdupes ? comparenamesqe : comparenamesq);
    14121398      SleepIfNeeded(pitdSleep, 1);
    1413       // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL
    14141399      if (!grep->nosizedupes) {
    14151400        qsort(grep->dupesizes, x, sizeof(DUPES *), comparesizesq);
    14161401        SleepIfNeeded(pitdSleep, 1);
    1417         // DosSleep(0); //26 Aug 07 GKY 1       // 07 Feb 08 SHL
    14181402      }
    14191403
     
    15971581        if (!(i->flags & GF_SKIPME)) {
    15981582          if (IsITimerExpired(pitdReport)) {
    1599             // if (!(y % cntr)) { }
    1600             CHAR s[44];
     1583            CHAR s[44];
     1584
    16011585            sprintf(s, GetPString(IDS_GREPDUPECHECKPROGTEXT), y, grep->numfiles);
    16021586            if (!hwndStatus)
     
    16041588            else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles)
    16051589              WinSetWindowText(hwndStatus, s);
    1606             // DosSleep(0); //26 Aug 07 GKY 1   // 07 Feb 08 SHL
    16071590          }
    16081591          y++;
     
    16671650                }
    16681651              }
    1669               // else if (!(x % 100))   // 07 Feb 08 SHL
    1670               //        DosSleep(0);  //26 Aug 07 GKY 1 // 07 Feb 08 SHL
    16711652            }
    16721653            c = c->next;
Note: See TracChangeset for help on using the changeset viewer.