Changeset 204 for trunk/dll/seeall.c


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

Drop unused code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    }
Note: See TracChangeset for help on using the changeset viewer.