Browse Source

Unused code

Source commit: c986ac77cc5d777c875104970573378cbe5c21f4
Martin Prikryl 5 months ago
parent
commit
f13864b1da
1 changed files with 2 additions and 3 deletions
  1. 2 3
      source/packages/filemng/IEDriveInfo.pas

+ 2 - 3
source/packages/filemng/IEDriveInfo.pas

@@ -107,7 +107,7 @@ type
     function GetSimpleName(Drive: string): string;
     function GetDisplayName(Drive: string): string;
     function GetPrettyName(Drive: string): string;
-    function ReadDriveStatus(Drive: string; Flags: Integer): Boolean;
+    procedure ReadDriveStatus(Drive: string; Flags: Integer);
     procedure OverrideDrivePolicy(Drive: string);
     property HonorDrivePolicy: Integer read FHonorDrivePolicy write SetHonorDrivePolicy;
     property FirstFixedDrive: Char read GetFirstFixedDrive;
@@ -538,7 +538,7 @@ begin
   end;
 end; {TDriveInfo.GetData}
 
-function TDriveInfo.ReadDriveStatus(Drive: string; Flags: Integer): Boolean;
+procedure TDriveInfo.ReadDriveStatus(Drive: string; Flags: Integer);
 var
   ErrorMode: Word;
   FileInfo: TShFileInfo;
@@ -673,7 +673,6 @@ begin
         FreePIDL(PIDL);
       ResetDrive(Drive);
     end;
-    Result := Valid and DriveReady;
   end;
 end; {TDriveInfo.ReadDriveStatus}