From: Tim Düsterhus Date: Wed, 22 Sep 2021 10:33:17 +0000 (+0200) Subject: Remove unused methods from BasicFileUtil in install.php X-Git-Tag: 5.5.0_Alpha_1~423 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=13a6ac2f2069c92edabb001414037e1c8b3c9d29;p=GitHub%2FWoltLab%2FWCF.git Remove unused methods from BasicFileUtil in install.php --- diff --git a/wcfsetup/install.php b/wcfsetup/install.php index 37ae0196c0..305dc5caaf 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -660,26 +660,6 @@ class BasicFileUtil { } } - /** - * Removes a leading slash from the given path. - * - * @param string $path - * @return string - */ - public static function removeLeadingSlash($path) { - return ltrim($path, '/'); - } - - /** - * Removes a trailing slash from the given path. - * - * @param string $path - * @return string - */ - public static function removeTrailingSlash($path) { - return rtrim($path, '/'); - } - /** * Adds a trailing slash to the given path. * @@ -690,16 +670,6 @@ class BasicFileUtil { return rtrim($path, '/').'/'; } - /** - * Adds a leading slash to the given path. - * - * @param string $path - * @return string - */ - public static function addLeadingSlash($path) { - return '/'.ltrim($path, '/'); - } - /** * Creates a path on the local filesystem and returns true on success. * Parent directories do not need to exists as they will be created if