From 13a6ac2f2069c92edabb001414037e1c8b3c9d29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 22 Sep 2021 12:33:17 +0200 Subject: [PATCH] Remove unused methods from BasicFileUtil in install.php --- wcfsetup/install.php | 30 ------------------------------ 1 file changed, 30 deletions(-) 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 -- 2.20.1