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