Browse Source

Merge pull request #38593 from nextcloud/chore/ocp/drop-util-linktopublic

chore(ocp)!: Drop \OCP\Util::linkToPublic
Christoph Wurst 11 months ago
parent
commit
09c5f997c6
1 changed files with 0 additions and 15 deletions
  1. 0 15
      lib/public/Util.php

+ 0 - 15
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