aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/utils/davUtils.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/utils/davUtils.js')
-rw-r--r--apps/files/src/utils/davUtils.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/apps/files/src/utils/davUtils.js b/apps/files/src/utils/davUtils.js
deleted file mode 100644
index a4c9ccac755..00000000000
--- a/apps/files/src/utils/davUtils.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: AGPL-3.0-or-later
- */
-
-import { generateRemoteUrl } from '@nextcloud/router'
-import { getCurrentUser } from '@nextcloud/auth'
-
-export const getRootPath = function() {
- if (getCurrentUser()) {
- return generateRemoteUrl(`dav/files/${getCurrentUser().uid}`)
- } else {
- return generateRemoteUrl('webdav').replace('/remote.php', '/public.php')
- }
-}
-
-export const isPublic = function() {
- return !getCurrentUser()
-}
-
-export const getToken = function() {
- return document.getElementById('sharingToken') && document.getElementById('sharingToken').value
-}