Changeset 204 for trunk/dll


Ignore:
Timestamp:
Jun 8, 2005, 7:57:53 AM (20 years ago)
Author:
root
Message:

Drop unused code

Location:
trunk/dll
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/command.c

    r123 r204  
    55
    66  Copyright (c) 1993-98 M. Kimes
    7   Copyright (c) 2004 Steven H.Levine
    8 
    9   Revisions     01 Aug 04 SHL Rework lstrip/rstrip usage
     7  Copyright (c) 2004, 2005 Steven H. Levine
     8
     9  01 Aug 04 SHL Rework lstrip/rstrip usage
     10  06 Jun 05 SHL Drop unused code
    1011
    1112***********************************************************************/
     
    760761VOID RunCommand (HWND hwnd,INT cx) {
    761762
    762   static CHAR  stop = 0;
    763763  INT          x;
    764764  CHAR       **list;
     
    779779
    780780    INT   flags;
    781     BOOL  dieafter = FALSE;
    782781
    783782    x--;
     
    789788    else
    790789      flags |= SEPARATE;
    791     flags &= (~KEEP);
    792     if(flags & DIEAFTER)
    793       dieafter = TRUE;
    794     flags &= (~DIEAFTER);
     790    flags &= ~(KEEP | DIEAFTER);
    795791    if((flags & ONCE) && list && list[0]) {
    796792
  • trunk/dll/datamin.c

    r179 r204  
    1414  23 May 05 SHL Avoid delays for inaccessible drives
    1515  25 May 05 SHL Use ULONGLONG and CommaFmtULL
     16  06 Jun 05 SHL Drop unused code
    1617
    1718***********************************************************************/
     
    962963  case UM_SETUP2:
    963964    {
    964       CHAR s[134], szFileQty[38], szFreeQty[38], *pszFileUM, *pszFreeUM;
     965      CHAR s[134], szFileQty[38], szFreeQty[38];
    965966      FILEFINDBUF3 ffb;
    966967      ULONG nm = 1L;
  • trunk/dll/grep.c

    r163 r204  
    1313  25 May 05 SHL Rework for ULONGLONG
    1414  25 May 05 SHL Rework for FillInRecordFromFFB
     15  06 Jun 05 SHL Drop unused code
    1516
    1617***********************************************************************/
     
    595596    dcd = INSTDATA(grep->hwndFiles);
    596597    for(x = 0; grep->insertffb[x]; x++) {
    597       ULONGLONG ullBytes;
    598598      FillInRecordFromFFB(grep->hwndFiles,
    599599                          pci,
     
    741741
    742742    HOLDFEA *head,*info;
    743     USHORT  codepage,num,type,len;
     743    USHORT  type,len;
    744744    BOOL    alltext;
    745745    CHAR    *data,temp;
     
    764764            break;
    765765          case EAT_MVST:
    766             codepage = *(USHORT *)(info->value + sizeof(USHORT));
    767             num = *(USHORT *)(info->value + (sizeof(USHORT) * 2));
    768766            type = *(USHORT *)(info->value + (sizeof(USHORT) * 3));
    769767            if(type == EAT_ASCII) {
     
    797795            break;
    798796          case EAT_MVMT:
    799             codepage = *(USHORT *)(info->value + sizeof(USHORT));
    800             num = *(USHORT *)(info->value + (sizeof(USHORT) * 2));
    801797            data = info->value + (sizeof(USHORT) * 3);
    802798            type = *(USHORT *)data;
  • trunk/dll/seeall.c

    r186 r204  
    1515  25 May 05 SHL Use ULONGLONG and CommaFmtULL
    1616  05 Jun 05 SHL Use QWL_USER
     17  06 Jun 05 SHL Drop unused code
    1718
    1819***********************************************************************/
     
    3940#pragma alloc_text(SEEALL,comparedates,compareexts,SeeStatusProc)
    4041#pragma alloc_text(SEEALL,InitWindow,PaintLine,SeeAllWndProc)
    41 #pragma alloc_text(SEEALL,UpdateList,CollectList,ReSort,Mark,MarkList)
     42#pragma alloc_text(SEEALL,UpdateList,CollectList,ReSort,Mark)
    4243#pragma alloc_text(SEEALL,BuildAList,RemoveDeleted,SeeFrameWndProc,FilterList)
    4344#pragma alloc_text(SEEALL2,SeeObjWndProc,MakeSeeObj,FindDupes,DupeDlgProc)
     
    15481549        if (pAD->afindex[y]->flags & AF_SELECTED)
    15491550          pAD->afindex[y]->flags |= AF_FILTERED;
    1550       }
    1551     }
    1552   } // for x
    1553   return didone;
    1554 }
    1555 
    1556 
    1557 static BOOL MarkList (HWND hwnd,INT command,CHAR **list)
    1558 {
    1559   /* Marks files whether filtered or not */
    1560 
    1561   ALLDATA       *pAD = WinQueryWindowPtr(hwnd,QWL_USER);
    1562   register ULONG x,z;
    1563   BOOL          ret = TRUE;
    1564   BOOL          didone = FALSE;
    1565 
    1566   for(x = 0;x < pAD->affiles;x++) {
    1567     if(list) {
    1568       ret = FALSE;
    1569       for(z = 0;list[z];z++) {
    1570         if(!stricmp(list[z],pAD->afhead[x].fullname)) {
    1571           ret = TRUE;
    1572           break;
    1573         }
    1574       }
    1575     }
    1576     if(ret) {
    1577       didone = TRUE;
    1578       if (command == AFM_UNMARK) {
    1579         if (pAD->afhead[x].flags & AF_SELECTED) {
    1580           pAD->selected--;
    1581           pAD->ullSelectedBytes -= pAD->afhead[x].cbFile;
    1582           pAD->afhead[x].flags &= ~AF_SELECTED;
    1583         }
    1584       }
    1585       else if (command == AFM_MARK) {
    1586         if (~pAD->afhead[x].flags & AF_SELECTED) {
    1587           pAD->selected++;
    1588           pAD->ullSelectedBytes += pAD->afhead[x].cbFile;
    1589           pAD->afhead[x].flags |= AF_SELECTED;
    1590         }
    1591       }
    1592       else if (command == AFM_INVERT) {
    1593         if (pAD->afhead[x].flags & AF_SELECTED) {
    1594           pAD->selected--;
    1595           pAD->ullSelectedBytes -= pAD->afhead[x].cbFile;
    1596           pAD->afhead[x].flags &= ~AF_SELECTED;
    1597         }
    1598         else {
    1599           pAD->selected++;
    1600           pAD->ullSelectedBytes += pAD->afhead[x].cbFile;
    1601           pAD->afhead[x].flags |= AF_SELECTED;
    1602         }
    1603       }
    1604       else if (command == AFM_MARKDELETED) {
    1605         if (pAD->afhead[x].flags & AF_SELECTED)
    1606           pAD->afhead[x].flags |= AF_DELETED;
    1607       }
    1608       else if (command == AFM_FILTER) {
    1609         if (pAD->afhead[x].flags & AF_SELECTED)
    1610           pAD->afhead[x].flags |= AF_FILTERED;
    16111551      }
    16121552    }
  • trunk/dll/select.c

    r158 r204  
    99  01 Aug 04 SHL Rework lstrip/rstrip usage
    1010  25 May 05 SHL Rework for ULONGLONG
     11  06 Jun 05 SHL Drop unused code
    1112
    1213***********************************************************************/
     
    8889        foundone = TRUE;
    8990      }
    90     }
    91     if(!foundone && !partial) {
    92 
    9391    }
    9492    if(!foundone)
     
    567565
    568566
    569 #pragma alloc_text (SELECT3,SpecialSelect,CompNames,CompNamesB)
     567#pragma alloc_text (SELECT3,SpecialSelect)
    570568#pragma alloc_text(SELECT4,FreeCnrs,SpecialSelect2,CompSSNames,CompSSNamesB)
    571 
    572 
    573 static int CompNamesB (const void *s1,const void *s2) {
    574 
    575   PCNRITEM pci = *(PCNRITEM *)s2;
    576 
    577   return stricmp((CHAR *)s1,pci->pszFileName);
    578 }
    579 
    580 
    581 static int CompNames (const void *s1,const void *s2) {
    582 
    583   PCNRITEM pci1 = *(PCNRITEM *)s1;
    584   PCNRITEM pci2 = *(PCNRITEM *)s2;
    585 
    586   return stricmp(pci1->pszFileName,pci2->pszFileName);
    587 }
    588569
    589570
  • trunk/dll/update.c

    r152 r204  
    1313  25 May 05 SHL Rework for ULONGLONG
    1414  25 May 05 SHL Rework for FillInRecordFromFFB
     15  06 Jun 05 SHL Drop unused code
    1516
    1617***********************************************************************/
     
    4041  ULONG         oldemphasis = 0;
    4142  APIRET        status;
    42   BOOL          needtosort = FALSE;
    4343#ifdef DEBUG
    4444  BOOL existed=FALSE,updated=FALSE,added=FALSE,deleted=FALSE,found=FALSE;
     
    171171      added=TRUE;
    172172#endif
    173       needtosort = TRUE;
    174173      if(dcd->type == DIR_FRAME) {
    175174
     
    331330          RECORDINSERT ri;
    332331          ULONGLONG ullTotalBytes;
    333           BOOL rc;
    334332
    335333          *ffb.achName = 0;
     
    436434  INT           numremain;
    437435  BOOL          repos = FALSE;
    438   BOOL          needtosort = FALSE;
    439436  BOOL          ret = FALSE;
    440437  APIRET        status;
     
    565562      {
    566563        /* add record */
    567         needtosort = TRUE;
    568564        if (dcd->type == DIR_FRAME)
    569565        {
     
    724720
    725721              RECORDINSERT ri;
    726               ULONG  ullTotalBytes;
    727               BOOL rc;
     722              ULONGLONG ullTotalBytes;
    728723
    729724              ret = TRUE;
  • trunk/dll/uudecode.c

    r195 r204  
    1010
    1111  06 Jun 05 SHL Indent -i2
     12  06 Jun 05 SHL Drop unused code
    1213
    1314***********************************************************************/
     
    111112  }
    112113
    113 //  chmod(dest,mode);
    114 
    115114  ret = 1;
    116   if (decode(in, out))
    117   {
    118 //    saymsg(MB_ENTER,HWND_DESKTOP,"UUD error","File \"%s\" is short.",filename);
    119     //    ret = -1;
    120   }
    121   if (!fgets(buf, sizeof(buf), in) || strcmp(buf, "end\n"))
    122   {
    123 //    saymsg(MB_ENTER,HWND_DESKTOP,"UUD error","No end line or garbage at end of \"%s\"",
    124     //           filename);
    125     //    ret = -1;
    126   }
     115  decode(in, out);
     116
     117  fgets(buf, sizeof(buf), in);
     118
    127119  fclose(in);
    128120  fclose(out);
     
    167159static void outdec(char *p, FILE * f, int n)
    168160{
    169   int c1, c2, c3;
    170 
    171   c1 = DEC(*p) << 2 | DEC(p[1]) >> 4;
    172   c2 = DEC(p[1]) << 4 | DEC(p[2]) >> 2;
     161  INT c1, c2, c3;
     162
     163  c1 = DEC(*p) << 2 | (UINT)DEC(p[1]) >> 4;
     164  c2 = DEC(p[1]) << 4 | (UINT)DEC(p[2]) >> 2;
    173165  c3 = DEC(p[2]) << 6 | DEC(p[3]);
    174166  if (n >= 1)
Note: See TracChangeset for help on using the changeset viewer.