Masks: remove TWindowsMaskList.MatchesWindowsMask. It should never have been there, since it does not resolve a backwards compatibility issue (there never existed a TWindowsMaskList before).

This commit is contained in:
Bart 2023-01-14 19:16:51 +01:00
parent dc18060660
commit 7b8159908e

View File

@ -364,11 +364,6 @@ type
constructor Create(const aValue: String; aSeparator: Char; aOptions: TMaskOptions); override; constructor Create(const aValue: String; aSeparator: Char; aOptions: TMaskOptions); override;
deprecated 'Use Create with TMaskOpcodes paramater'; deprecated 'Use Create with TMaskOpcodes paramater';
//Remove in 2.5
function MatchesWindowsMask(const AFileName: String): Boolean; reintroduce;
deprecated 'Use a Matches instead.';
property Quirks: TWindowsQuirks read fWindowsQuirks write SetQuirks; property Quirks: TWindowsQuirks read fWindowsQuirks write SetQuirks;
end; end;
@ -590,10 +585,6 @@ begin
Create(aValue, aSeparator, (moCaseSensitive in aOptions), DefaultMaskOpCodes, DefaultWindowsQuirks); Create(aValue, aSeparator, (moCaseSensitive in aOptions), DefaultMaskOpCodes, DefaultWindowsQuirks);
end; end;
function TWindowsMaskList.MatchesWindowsMask(const AFileName: String): Boolean;
begin
Result := Matches(AFilename);
end;
{ EMaskError } { EMaskError }