From f04ff2c6d7389aff02c43821a0d757f2299152dd Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 1 Jun 2023 20:32:59 +0200 Subject: chore(ocp)!: Drop \OCP\Util::linkToPublic Signed-off-by: Christoph Wurst --- lib/public/Util.php | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'lib') diff --git a/lib/public/Util.php b/lib/public/Util.php index 64934c5f3ad..b42327ada93 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -277,21 +277,6 @@ class Util { ); } - /** - * Creates an absolute url for public use - * @param string $service id - * @return string the url - * @since 4.5.0 - * @deprecated 15.0.0 - use OCP\IURLGenerator - */ - public static function linkToPublic($service) { - $urlGenerator = \OC::$server->getURLGenerator(); - if ($service === 'files') { - return $urlGenerator->getAbsoluteURL('/s'); - } - return $urlGenerator->getAbsoluteURL($urlGenerator->linkTo('', 'public.php').'?service='.$service); - } - /** * Returns the server host name without an eventual port number * @return string the server hostname -- cgit v1.2.3