summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-19 11:32:10 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-19 11:32:10 +0100
commit68871caf3ce7b59dc977dd198681b42121ca7259 (patch)
tree10fba385b233cfacfcec04e764fbf26e2feb803a /lib/private/legacy
parentd984c8d6333ffab0ee959f8e75d0834742e62076 (diff)
downloadnextcloud-server-68871caf3ce7b59dc977dd198681b42121ca7259.tar.gz
nextcloud-server-68871caf3ce7b59dc977dd198681b42121ca7259.zip
Remove unused private function
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/json.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/private/legacy/json.php b/lib/private/legacy/json.php
index 0afa179b3d8..b02e5c879fc 100644
--- a/lib/private/legacy/json.php
+++ b/lib/private/legacy/json.php
@@ -112,21 +112,6 @@ class OC_JSON{
}
/**
- * Check is a given user exists - send json error msg if not
- * @param string $user
- * @deprecated Use a AppFramework JSONResponse instead
- * @suppress PhanDeprecatedFunction
- */
- public static function checkUserExists($user) {
- if (!\OC::$server->getUserManager()->userExists($user)) {
- $l = \OC::$server->getL10N('lib');
- OCP\JSON::error(array('data' => array('message' => $l->t('Unknown user'), 'error' => 'unknown_user' )));
- exit;
- }
- }
-
-
- /**
* Check if the user is a subadmin, send json error msg if not
* @deprecated Use annotation based ACLs from the AppFramework instead
* @suppress PhanDeprecatedFunction