aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2023-06-02 10:23:37 +0200
committerGitHub <noreply@github.com>2023-06-02 10:23:37 +0200
commit09c5f997c6d185d8b23b37a996e7a1130a426d75 (patch)
tree20c33ebdf1bb8ba139ca1ca0b5ab87e875cd62cb
parentfa4f476f01c460315ace52b09dc5fae1a1f24ad3 (diff)
parentf04ff2c6d7389aff02c43821a0d757f2299152dd (diff)
downloadnextcloud-server-09c5f997c6d185d8b23b37a996e7a1130a426d75.tar.gz
nextcloud-server-09c5f997c6d185d8b23b37a996e7a1130a426d75.zip
Merge pull request #38593 from nextcloud/chore/ocp/drop-util-linktopublic
chore(ocp)!: Drop \OCP\Util::linkToPublic
-rw-r--r--lib/public/Util.php15
1 files changed, 0 insertions, 15 deletions
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
@@ -278,21 +278,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
* @since 5.0.0