From 68871caf3ce7b59dc977dd198681b42121ca7259 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 19 Mar 2018 11:32:10 +0100 Subject: [PATCH] Remove unused private function Signed-off-by: Roeland Jago Douma --- lib/private/legacy/json.php | 15 --------------- 1 file changed, 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 @@ -111,21 +111,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