Changeset 1868


Ignore:
Timestamp:
Aug 24, 2015, 10:51:17 PM (10 years ago)
Author:
Gregg Young
Message:

Remove obsolete code fDontAsk?zip and fDummy

Location:
trunk/dll
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1865 r1868  
    119119  22 Aug 15 GKY Minimize the occurence of an A:\ Drive not ready error by moving the cursor
    120120                to the default drive.
     121  24 AUG 15 GKY Remove fDummy code
    121122
    122123***********************************************************************/
     
    12691270  DbgMsg(pszSrcFile, __LINE__, "FillTreeCnr hwndCnr %x hwndParent %x", hwndCnr, hwndParent);     // 2015-08-03 SHL FIXME debug
    12701271
    1271   fDummy = TRUE;
    12721272  *szSuggest = 0;
    12731273  for (iDrvNum = 0; iDrvNum < 26; iDrvNum++) {
     
    16731673
    16741674  DosSleep(16);
    1675   fDummy = FALSE;
    16761675
    16771676  fInitialDriveScan = FALSE;
  • trunk/dll/init.c

    r1863 r1868  
    138138  20 Aug 15 SHL Support PCSZ_DOS...SEM
    139139  22 Aug 15 GKY Remove recurse scan code.
    140 
     140  24 Aug 15 GKY Remove obsolete code fDontAsk?zip
     141 
    141142***********************************************************************/
    142143
     
    261262BOOL fReminimize;
    262263BOOL fWantFirstTimeInit;
    263 BOOL fUseShellEnv;
    264 BOOL fDontAskBzip;
    265 BOOL fDontAskGzip;
    266 //BOOL fDrivetoSkip[26];
     264BOOL fUseShellEnv;;
    267265HPOINTER hptrApp;
    268266HPOINTER hptrArc;
     
    16461644  if (fThreadNotes)
    16471645    ShowNote();
    1648   size = sizeof(BOOL);
    1649   PrfQueryProfileData(fmprof, FM3Str, "DontAskBzip", &fDontAskBzip, &size);
    1650   size = sizeof(BOOL);
    1651   PrfQueryProfileData(fmprof, FM3Str, "DontAskGzip", &fDontAskGzip, &size);
    16521646
    16531647  // 2015-08-11 SHL FIXME debug
  • trunk/dll/init.h

    r1860 r1868  
    4545  19 Aug 15 SHL Delete obsoletes
    4646  20 Aug 15 SHL Support PCSZ_DOS...SEM
     47  24 Aug 15 GKY Remove obsolete code fDontAsk?zip
    4748
    4849***********************************************************************/
     
    223224extern BOOL fWantFirstTimeInit;
    224225extern BOOL fUseShellEnv;
    225 extern BOOL fDontAskBzip;
    226 extern BOOL fDontAskGzip;
    227226extern HPOINTER hptrApp;
    228227extern HPOINTER hptrArc;
  • trunk/dll/treecnr.c

    r1867 r1868  
    104104  22 Aug 15 GKY Improve ability of maketop to get directory position in tree correct on first
    105105                open of states with large and/or deep tree structures
     106  24 AUG 15 GKY Remove fDummy code
    106107
    107108***********************************************************************/
     
    180181INT driveserial[26];
    181182BOOL fDCOpens;
    182 BOOL fDummy;
    183183BOOL fFollowTree;
    184184BOOL fTopDir;
     
    17981798
    17991799      case CN_EMPHASIS:
    1800         if (!fDummy) {
    1801 
    1802           PNOTIFYRECORDEMPHASIS pre = mp2;
    1803 
    1804           if (pre->fEmphasisMask & CRA_SELECTED) {
    1805             if (pre->pRecord->flRecordAttr & CRA_SELECTED) {
    1806               if (((PCNRITEM) (pre->pRecord))->attrFile & FILE_DIRECTORY) {
    1807                 PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID);
    1808                 if (fFollowTree &&
    1809                     !(driveflags
    1810                       [toupper(*((PCNRITEM) pre->pRecord)->pszFileName) -
    1811                        'A'] & DRIVE_INVALID)) {
    1812                   if (!LastDir && !ParentIsDesktop(hwnd, dcd->hwndParent))
    1813                     LastDir = FindDirCnr(dcd->hwndParent);
    1814                   if (LastDir) {
    1815 
    1816                     NOTIFYRECORDENTER pri;
    1817                     BOOL tbool = fDCOpens;
    1818 
    1819                     fDCOpens = FALSE;
    1820                     memset(&pri, 0, sizeof(pri));
    1821                     pri.hwndCnr = hwnd;
    1822                     pri.fKey = FALSE;
    1823                     pri.pRecord = pre->pRecord;
    1824                     WinSendMsg(hwnd,
    1825                                WM_CONTROL,
    1826                                MPFROM2SHORT(SHORT1FROMMP(mp1),
    1827                                             CN_ENTER), MPFROMP(&pri));
    1828                     fDCOpens = tbool;
    1829                   }
    1830                 }
    1831                 if (*(ULONG *) realappname != FM3UL)
    1832                   WinSetWindowText(WinWindowFromID(dcd->hwndFrame,
    1833                                                    MAIN_STATUS),
    1834                                    ((PCNRITEM) (pre->pRecord))->pszFileName);
    1835               }
    1836             }
    1837           }
    1838         }
    1839         break;
     1800        {
     1801          PNOTIFYRECORDEMPHASIS pre = mp2;
     1802
     1803          if (pre->fEmphasisMask & CRA_SELECTED) {
     1804            if (pre->pRecord->flRecordAttr & CRA_SELECTED) {
     1805              if (((PCNRITEM) (pre->pRecord))->attrFile & FILE_DIRECTORY) {
     1806                PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID);
     1807                if (fFollowTree &&
     1808                    !(driveflags
     1809                      [toupper(*((PCNRITEM) pre->pRecord)->pszFileName) -
     1810                       'A'] & DRIVE_INVALID)) {
     1811                  if (!LastDir && !ParentIsDesktop(hwnd, dcd->hwndParent))
     1812                    LastDir = FindDirCnr(dcd->hwndParent);
     1813                  if (LastDir) {
     1814 
     1815                    NOTIFYRECORDENTER pri;
     1816                    BOOL tbool = fDCOpens;
     1817 
     1818                    fDCOpens = FALSE;
     1819                    memset(&pri, 0, sizeof(pri));
     1820                    pri.hwndCnr = hwnd;
     1821                    pri.fKey = FALSE;
     1822                    pri.pRecord = pre->pRecord;
     1823                    WinSendMsg(hwnd,
     1824                               WM_CONTROL,
     1825                               MPFROM2SHORT(SHORT1FROMMP(mp1),
     1826                                            CN_ENTER), MPFROMP(&pri));
     1827                    fDCOpens = tbool;
     1828                  }
     1829                }
     1830                if (*(ULONG *) realappname != FM3UL)
     1831                  WinSetWindowText(WinWindowFromID(dcd->hwndFrame,
     1832                                                   MAIN_STATUS),
     1833                                   ((PCNRITEM) (pre->pRecord))->pszFileName);
     1834              }
     1835            }
     1836          }
     1837        }
     1838        break;
    18401839
    18411840      case CN_CONTEXTMENU:
     
    31833182    if (dcd && hwndMain) {
    31843183      fOkayMinimize = TRUE;
    3185       if (dcd->hwndObject && !fDummy) {
     3184      if (dcd->hwndObject) {
    31863185        DosSleep(50);//05 Aug 07 GKY 100
    3187         if (!fDummy) {
    31883186          fOkayMinimize = FALSE;
    31893187          WinSetWindowPos(((hwndMain) ? WinQueryWindow(hwndMain, QW_PARENT) :
    31903188                           dcd->hwndFrame), HWND_TOP, 0, 0, 0, 0,
    31913189                          SWP_MINIMIZE | SWP_DEACTIVATE);
    3192         }
    31933190      }
    31943191    }
  • trunk/dll/treecnr.h

    r1865 r1868  
    1414                and have no default choice.
    1515  23 Aug 15 SHL Protect ShowTreeRec dirname arg
     16  24 AUG 15 GKY Remove fDummy code
    1617
    1718***********************************************************************/
     
    3536extern INT driveserial[26];
    3637extern BOOL fDCOpens;
    37 extern BOOL fDummy;
    3838extern BOOL fFollowTree;
    3939extern BOOL fTopDir;
Note: See TracChangeset for help on using the changeset viewer.