FileUtil: inline ChompPathDelim to LazFileUtils.ChompPathDelim.

git-svn-id: trunk@41324 -
This commit is contained in:
bart 2013-05-20 13:24:19 +00:00
parent 348410562f
commit a9b26cc418

View File

@ -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;