From 896764a797748c4edbcdafd463fd2aa1bec3d1e4 Mon Sep 17 00:00:00 2001 From: Maxim Ganetsky Date: Fri, 29 Oct 2021 23:47:20 +0300 Subject: [PATCH] Lazutils: removed `deprecated` messages from Masks unit at Bart's request --- components/lazutils/masks.pas | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/lazutils/masks.pas b/components/lazutils/masks.pas index 2c8b71399f..8e9334afa4 100644 --- a/components/lazutils/masks.pas +++ b/components/lazutils/masks.pas @@ -50,7 +50,7 @@ type procedure InitMaskString(const AValue: String); procedure ClearMaskString; public - constructor Create(const AValue: String; const CaseSensitive: Boolean); deprecated 'use overload with Options parameter'; + constructor Create(const AValue: String; const CaseSensitive: Boolean); constructor Create(const AValue: String; const AOptions: TMaskOptions = []); destructor Destroy; override; @@ -73,7 +73,7 @@ type function GetCount: Integer; function GetItem(Index: Integer): TMask; public - constructor Create(const AValue: String; ASeparator: Char; const CaseSensitive: Boolean); deprecated 'use overload with Options parameter'; + constructor Create(const AValue: String; ASeparator: Char; const CaseSensitive: Boolean); constructor Create(const AValue: String; ASeparator: Char = ';'; const AOptions: TMaskOptions = []); destructor Destroy; override; @@ -84,18 +84,18 @@ type property Items[Index: Integer]: TMask read GetItem; end; -function MatchesMask(const FileName, Mask: String; const CaseSensitive: Boolean): Boolean; deprecated 'use overload with Options parameter'; +function MatchesMask(const FileName, Mask: String; const CaseSensitive: Boolean): Boolean; function MatchesMask(const FileName, Mask: String; const Options: TMaskOptions = []): Boolean; -function MatchesWindowsMask(const FileName, Mask: String; const CaseSensitive: Boolean): Boolean; deprecated 'use overload with Options parameter'; +function MatchesWindowsMask(const FileName, Mask: String; const CaseSensitive: Boolean): Boolean; function MatchesWindowsMask(const FileName, Mask: String; const Options: TMaskOptions = []): Boolean; function MatchesMaskList(const FileName, Mask: String): Boolean; function MatchesMaskList(const FileName, Mask: String; Separator: Char): Boolean; -function MatchesMaskList(const FileName, Mask: String; Separator: Char; const CaseSensitive: Boolean): Boolean; deprecated 'use overload with Options parameter'; +function MatchesMaskList(const FileName, Mask: String; Separator: Char; const CaseSensitive: Boolean): Boolean; function MatchesMaskList(const FileName, Mask: String; Separator: Char; const Options: TMaskOptions): Boolean; function MatchesWindowsMaskList(const FileName, Mask: String): Boolean; function MatchesWindowsMaskList(const FileName, Mask: String; Separator: Char): Boolean; -function MatchesWindowsMaskList(const FileName, Mask: String; Separator: Char; const CaseSensitive: Boolean): Boolean; deprecated 'use overload with Options parameter'; +function MatchesWindowsMaskList(const FileName, Mask: String; Separator: Char; const CaseSensitive: Boolean): Boolean; function MatchesWindowsMaskList(const FileName, Mask: String; Separator: Char; const Options: TMaskOptions): Boolean; implementation