ShellTreeView: comment out some redundant code.

git-svn-id: trunk@47687 -
This commit is contained in:
bart 2015-02-10 21:05:02 +00:00
parent 81193487b6
commit 2f6091443d

View File

@ -560,10 +560,11 @@ begin
IsValidDirectory := (DirInfo.Name <> '.') and (DirInfo.Name <> '..'); IsValidDirectory := (DirInfo.Name <> '.') and (DirInfo.Name <> '..');
IsHidden := (DirInfo.Attr and faHidden = faHidden); IsHidden := (DirInfo.Attr and faHidden = faHidden);
{$IFDEF Unix} //LinuxToWinAttr already does this in FF/FN
if (DirInfo.Name<>'') and (DirInfo.Name[1]='.') then //{$IFDEF Unix}
IsHidden:=true; //if (DirInfo.Name<>'') and (DirInfo.Name[1]='.') then
{$ENDIF} // IsHidden:=true;
//{$ENDIF}
// First check if we show hidden files // First check if we show hidden files
if IsHidden then AddFile := (otHidden in AObjectTypes) if IsHidden then AddFile := (otHidden in AObjectTypes)
@ -676,10 +677,11 @@ var
(SR.Name <> '..')) then (SR.Name <> '..')) then
begin begin
IsHidden := ((Attr and faHidden) > 0); IsHidden := ((Attr and faHidden) > 0);
{$IFDEF Unix} //LinuxToWinAttr already does this in FF/FN
if (SR.Name<>'') and (SR.Name[1]='.') then //{$IFDEF Unix}
IsHidden := True; //if (SR.Name<>'') and (SR.Name[1]='.') then
{$ENDIF} // IsHidden := True;
//{$ENDIF}
if not (IsHidden and (not ((otHidden in fObjectTypes)))) then if not (IsHidden and (not ((otHidden in fObjectTypes)))) then
begin begin
Result := True; Result := True;