mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 20:38:16 +02:00
FileUtil: inline ChompPathDelim to LazFileUtils.ChompPathDelim.
git-svn-id: trunk@41324 -
This commit is contained in:
parent
348410562f
commit
a9b26cc418
@ -379,10 +379,7 @@ end;
|
||||
|
||||
function ChompPathDelim(const Path: string): string;
|
||||
begin
|
||||
if (Path<>'') and (Path[length(Path)]=PathDelim) then
|
||||
Result:=LeftStr(Path,length(Path)-1)
|
||||
else
|
||||
Result:=Path;
|
||||
Result := LazFileUtils.ChompPathDelim(Path);
|
||||
end;
|
||||
|
||||
function FileIsText(const AFilename: string): boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user