Changeset 1878


Ignore:
Timestamp:
Oct 12, 2015, 12:24:39 AM (10 years ago)
Author:
Gregg Young
Message:

Remove some dead code and comments source files starting with A-D

Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/arccnrs.c

    r1877 r1878  
    21302130                       (li->type == IDM_EDITTEXT && *editor) ||
    21312131                       (li->type == IDM_EDITBINARY && *bined)) {
    2132                 //DosSleep(32); // Added WAIT to runemf2 12-12-08 GKY
    21332132                ExecOnList(hwnd, ((li->type == IDM_VIEWTEXT) ? viewer :
    21342133                                  (li->type == IDM_VIEWBINARY) ? binview :
    21352134                                  (li->type == IDM_EDITTEXT) ? editor :
    21362135                                  bined),
    2137                            WINDOWED | SEPARATE, NULL, NULL, // li->targetpath,
     2136                           WINDOWED | SEPARATE, NULL, NULL,
    21382137                           li->list,
    21392138                           NULL, pszSrcFile, __LINE__);
     
    22382237              WinSendMsg(dcd->hwndCnr, WM_COMMAND,
    22392238                         MPFROM2SHORT(IDM_COLLECTOR, 0), MPVOID);
    2240               DosSleep(10); //05 Aug 07 GKY 128
     2239              DosSleep(10);
    22412240              if (Collector) {
    22422241                if (!PostMsg(Collector, WM_COMMAND,
     
    22662265    if (dcd) {
    22672266      if (*dcd->workdir) {
    2268         DosSleep(16); //05 Aug 07 GKY 33
     2267        DosSleep(16);
    22692268        wipeallf(TRUE, "%s\\*", dcd->workdir);
    22702269        if (rmdir(dcd->workdir)) {
    2271           DosSleep(100); //05 Aug 07 GKY 256
     2270          DosSleep(100);
    22722271          wipeallf(TRUE, "%s\\*", dcd->workdir);
    22732272          rmdir(dcd->workdir);
     
    26352634          if (!SetDir(dcd->hwndParent, hwnd, s, 0)) {
    26362635            if (stricmp(dcd->directory, s)) {
    2637               //DosEnterCritSec();  //GKY 11-29-08
    26382636              DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT);
    26392637              strcpy(lastextractpath, s);
    26402638              DosReleaseMutexSem(hmtxFM2Globals);
    2641               //DosExitCritSec();
    26422639            }
    26432640            strcpy(dcd->directory, s);
     
    26672664      SWP swp;
    26682665      CHAR *filename = mp1;
    2669       //printf("%s %d UM_ENTER %s\n",__FILE__, __LINE__, filename); fflush(stdout);
    26702666      if (IsFile(filename) != 1) {
    26712667        free(mp1);
     
    30173013            }
    30183014            WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0, SWP_ACTIVATE);
    3019             DosSleep(100); //05 Aug 07 GKY 128
     3015            DosSleep(100);
    30203016          }
    30213017        }
     
    30903086        if (mp2) {
    30913087          if (stricmp(dcd->directory, (CHAR *) mp2)) {
    3092             //DosEnterCritSec(); //GKY 11-29-08
    30933088            DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT);
    30943089            strcpy(lastextractpath, (CHAR *) mp2);
    30953090            MakeValidDir(lastextractpath);
    30963091            DosReleaseMutexSem(hmtxFM2Globals);
    3097             //DosExitCritSec();
    30983092          }
    30993093          strcpy(dcd->directory, (CHAR *) mp2);
     
    33703364          LISTINFO *li;
    33713365
    3372           //DosBeep(500, 100);          // fixme to know why beep?
    33733366          li = DoFileDrop(hwnd, dcd->arcname, FALSE, mp1, mp2);
    3374           //DosBeep(50, 100);           // fixme to know why beep?
    33753367          CheckPmDrgLimit(((PCNRDRAGINFO)mp2)->pDragInfo);
    33763368          if (li) {
     
    37393731        }
    37403732        if (!*dcd->directory && *lastextractpath) {
    3741           //DosEnterCritSec();  //GKY 11-29-08
    37423733          DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT);
    37433734          strcpy(dcd->directory, lastextractpath);
    37443735          DosReleaseMutexSem(hmtxFM2Globals);
    3745           //DosExitCritSec();
    37463736        }
    37473737        if (!*dcd->directory) {
  • trunk/dll/assoc.c

    r1877 r1878  
    886886          temp.offset = atol(dummy);
    887887        }
    888         //bstrip(temp.mask);
    889888        sprintf(key, "ASSOC.%senv", temp.pszCmdLine);
    890889        PrfWriteProfileString(fmprof, FM3Str, key, NULL);
     
    980979          temp.offset = atol(dummy);
    981980        }
    982         //bstrip(temp.mask);
    983981        sprintf(key, "ASSOC.%senv", temp.pszCmdLine);
    984982        PrfWriteProfileString(fmprof, FM3Str, key, NULL);
  • trunk/dll/autoview.c

    r1628 r1878  
    4545#include <string.h>
    4646#include <ctype.h>
    47 // #include <process.h>                 // _beginthread
    4847
    4948#define INCL_DOS
  • trunk/dll/cmdline.c

    r1859 r1878  
    9999  LINKCMDLINES *info, *last = NULL, *CmdLineHead;
    100100  PSZ pszCmdLine;
    101   //CHAR s[1024];
    102101  INT x = 0;
    103102  CHAR *moder = "r";
     
    156155  FILE *fp;
    157156  PSZ pszCmdLine;
    158   //CHAR s[CCHMAXPATH + 14];
    159157  CHAR *modew = "w";
    160158
     
    399397    MLEsetlimit(WinWindowFromID(hwnd, EXEC_ENVIRON), 1000);
    400398    WinSetDlgItemText(hwnd, EXEC_ENVIRON, ex->environment);
    401 //      WinEnableWindow(WinWindowFromID(hwnd,EXEC_ENVIRON),FALSE);
    402399    WinSendMsg(hwnd, UM_SETUP, MPVOID, MPVOID);
    403400    PosOverOkay(hwnd);
     
    421418        strcpy(executable, ex->path);
    422419        AddBackslashToPath(executable);
    423         //if (executable[strlen(executable) - 1] != '\\')
    424         //  strcat(executable, "\\");
    425420      }
    426421      else
     
    438433          *p = 0;
    439434        if (IsFile(executable) == -1) {
    440 //        p = searchpath(executable);
    441 //        if (*p)
    442435          if (SearchPathForFile(PCSZ_PATH, executable, executable))     // jbs: OK to have same source and destination?
    443 //          strcpy(executable, p);
    444 //        else {
    445436            WinSetDlgItemText(hwnd,
    446437                              EXEC_WARNING2,
    447438                              (CHAR *) GetPString(IDS_CANTFINDFILETEXT));
    448439            break;
    449 //        }
    450440        }
    451441      }
  • trunk/dll/collect.c

    r1836 r1878  
    9898#include <share.h>
    9999#include <limits.h>                     // USHRT_MAX
    100 // #include <process.h>                 // _beginthread
    101100
    102101#define INCL_DOS                        // QSV_MS_COUNT
     
    25832582
    25842583          pci = (PCNRITEM) ((PCNRDRAGINFO) mp2)->pRecord;
    2585           // if(SHORT1FROMMP(mp1) == CN_DRAGAFTER)
    2586           //    pci = NULL;
    25872584          pDInfo = ((PCNRDRAGINFO) mp2)->pDragInfo;
    25882585          if (!DrgAccessDraginfo(pDInfo)) {
  • trunk/dll/colors.c

    r1498 r1878  
    153153        co->colors[co->currentcolor] = (LONG) (SHORT1FROMMP(mp1) -
    154154                                               COLOR_FIRST);
    155         //DosBeep(1000, 1);             // fixme to be gone?
    156155      }
    157156      break;
  • trunk/dll/comp.c

    r1877 r1878  
    16251625      UINT l;
    16261626      UINT r;
    1627       // UINT cntr;
    16281627      FILELIST **filesl = NULL;
    16291628      FILELIST **filesr = NULL;
     
    20122011            pcir->pszDisplayName = pcir->pszFileName + lenr;
    20132012            pcir->attrFile = filesr[r]->attrFile;
    2014             // pcir->rc.hptrIcon = hptrFile;
    20152013            pcir->pszDispAttr = FileAttrToString(pcir->attrFile);
    20162014            pcir->cbFile = filesr[r]->cbFile;
     
    26712669      case BN_CLICKED:
    26722670        cmp = INSTDATA(hwnd);
    2673         //if (cmp)
    2674         //  *cmp->rightlist = 0;
    26752671        PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID);
    26762672        PostMsg(hwnd, UM_SETDIR, MPVOID, MPVOID);
     
    29232919      WinSetDlgItemText(hwnd, COMP_NOTE,
    29242920                        (CHAR *) GetPString(IDS_COMPHOLDFILTERINGTEXT));
    2925       // cmp->dcd.suspendview = 1;      // 12 Jan 08 SHL appears not to be used here
    29262921      priority_idle();                  // Don't hog resources
    29272922      WinSendMsg(GetHwndLeft(hwnd), CM_FILTER, MPFROMP(Filter),
     
    29302925                 MPFROMP(&cmp->dcd.mask));
    29312926      priority_normal();
    2932       // cmp->dcd.suspendview = 0;      // 12 Jan 08 SHL appears not to be used here
    29332927      if (*cmp->dcd.mask.szMask) {
    29342928        sprintf(s,
  • trunk/dll/copyf.c

    r1877 r1878  
    8686BOOL ignorereadonly = FALSE;
    8787
    88 //static CHAR default_disk(VOID);
    89 //static INT unlink_allf(CHAR * string, ...);
    90 
    9188#ifndef WinMoveObject
    9289HOBJECT APIENTRY WinMoveObject(HOBJECT hObjectofObject,
  • trunk/dll/dircnrs.c

    r1877 r1878  
    103103#include <ctype.h>
    104104#include <limits.h>
    105 //#include <malloc.h>                   // _msize _heapchk
    106 // #include <process.h>                 // _beginthread
    107105
    108106#define INCL_DOS
     
    21642162              TileChildren(dcd->hwndParent, TRUE);
    21652163            WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0, SWP_ACTIVATE);
    2166             DosSleep(100); // 05 Aug 07 GKY 250
     2164            DosSleep(100);
    21672165          }
    21682166        }
     
    21872185
    21882186      case IDM_COLLECTOR:
    2189         DosSleep(32); // 05 Aug 07 GKY 64
     2187        DosSleep(32);
    21902188        {
    21912189          CHAR **list;
     
    27032701                    WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0,
    27042702                                    SWP_ACTIVATE);
    2705                     DosSleep(100); //05 Aug 07 GKY 250
     2703                    DosSleep(100);
    27062704                  }
    27072705                }
     
    27732771            if (!cmdloaded)
    27742772              load_commands();
    2775             x = SHORT1FROMMP(mp1);// - IDM_COMMANDSTART;
     2773            x = SHORT1FROMMP(mp1);
    27762774            if (x >= 0) {
    2777               //x++;
    27782775              RunCommand(hwnd, x);
    27792776              if (fUnHilite)
     
    28002797        if (pci->attrFile & FILE_DIRECTORY) {
    28012798          menuHwnd = CheckMenu(hwndMainMenu, &DirMenu, DIR_POPUP);
    2802           // WinEnableMenuItem(DirMenu,IDM_TREE,TRUE);
    28032799        }
    28042800        else
     
    36903686      if (len == 0 && key != '\\') {
    36913687        // Let's see if user forgot leading backslash
    3692         // key = SHORT1FROMMP(mp2);
    36933688        if (SearchContainer(hwnd, msg, mp1, MPFROM2SHORT('\\', 0))) {
    36943689          if (SearchContainer(hwnd, msg, mp1, mp2))
     
    38043799                                       NULL,
    38053800                                       CCS_AUTOPOSITION | CCS_MINIICONS |
    3806                                        CCS_MINIRECORDCORE | ulCnrType, // |
    3807                                        //WS_VISIBLE,
     3801                                       CCS_MINIRECORDCORE | ulCnrType,
    38083802                                       0,
    38093803                                       0,
  • trunk/dll/dirsize.c

    r1871 r1878  
    173173  strcpy(maskstr, pszFileName);
    174174  AddBackslashToPath(maskstr);
    175   //if (maskstr[strlen(maskstr) - 1] != '\\')
    176   //  strcat(maskstr, "\\");
    177175  pEndMask = &maskstr[strlen(maskstr)]; // Point after last backslash
    178176  strcat(maskstr, "*");
     
    443441    fprintf(fp, "%*.*s%s %lu %s%s\n",
    444442            indent * 2, indent * 2, " ",
    445             pciParent->pszDisplayName,  //
     443            pciParent->pszDisplayName,
    446444            pciParent->attrFile,
    447445            GetPString(IDS_FILETEXT), &"s"[pciParent->attrFile == 1]);
     
    453451                                               CMA_ITEMORDER));
    454452      while (pci && (INT) pci != -1) {
    455         DosSleep(0); //26 Aug 07 GKY 1
     453        DosSleep(0);
    456454        PrintToFile(hwndCnr, indent + 1, pci, fp);
    457455        pci = (PCNRITEM) WinSendMsg(hwndCnr, CM_QUERYRECORD, MPFROMP(pci),
     
    935933            strrev(szTemp);
    936934            AddBackslashToPath(szFileName);
    937             //if (*szFileName && *szTemp != '\\')
    938             //  strcat(szFileName, "\\");
    939935            strcat(szFileName, szTemp);
    940936            pci = WinSendDlgItemMsg(hwnd, DSZ_CNR, CM_QUERYRECORD,
     
    11221118      if (pState->hptr)
    11231119        WinDestroyPointer(pState->hptr);
    1124       DosSleep(16); //05 Aug 07 GKY 33
     1120      DosSleep(16);
    11251121      xfree(pState, pszSrcFile, __LINE__); // Let's hope no one is still looking
    11261122#     ifdef FORTIFY
  • trunk/dll/draglist.c

    r1877 r1878  
    709709          DrgDeleteStrHandle(pDItem->hstrTargetName);
    710710        free(pDItem);
    711         // pDItem = NULL;       // Why bother, we can count - fixme to be gone
    712711        dcd->ulItemsToUnHilite = ulNumfiles + 1;
    713712        break;
     
    724723        pDItem->fsControl = DO_LINKABLE;
    725724      ulNumfiles++;
    726       // ppDItem[ulNumfiles] = NULL;    // Why bother - fixme to be gone
    727725    }
    728726  } // for
     
    738736        pDInfo->usOperation = DO_LINK;
    739737      pDInfo->hwndSource = hwndObj ? hwndObj : hwnd;
    740       // pDInfo->hwndSource = hwnd;
    741738      for (ulSelect = 0; ulSelect < ulNumfiles; ulSelect++) {
    742739        if (!DrgSetDragitem(pDInfo, ppDItem[ulSelect], sizeof(DRAGITEM), ulSelect)) {
  • trunk/vtree.def

    r1807 r1878  
    55# 14 Jun 07 SHL Convert to OpenWatcom
    66
    7 option description '@#The Netlabs FM/2 team:3.23.0#@##1## 2015-05-25 03:23:00      TRESBOPEEP::EN:US:0:U:@@FM/2 Tree View MiniApp Copyright (c) 1993, 1998 M. Kimes, Copyright (c) 2001, 2015 Steven Levine and Associates, Inc. All rights reserved'
     7option description '@#The Netlabs FM/2 team:3.24.0#@##1## 2015-10-11 03:24:00      TRESBOPEEP::EN:US:0:U:@@FM/2 Tree View MiniApp Copyright (c) 1993, 1998 M. Kimes, Copyright (c) 2001, 2015 Steven Levine and Associates, Inc. All rights reserved'
    88
    99option stack = 488416
Note: See TracChangeset for help on using the changeset viewer.