diff --git a/lib/public/Util.php b/lib/public/Util.php index 3a33a10c62082..302eb8d035eba 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -360,22 +360,6 @@ public static function callRegister() { return self::$token; } - /** - * Check an ajax get/post call if the request token is valid. exit if not. - * @since 4.5.0 - * @deprecated 9.0.0 Use annotations based on the app framework. - */ - public static function callCheck() { - if(!\OC::$server->getRequest()->passesStrictCookieCheck()) { - header('Location: '.\OC::$WEBROOT); - exit(); - } - - if (!\OC::$server->getRequest()->passesCSRFCheck()) { - exit(); - } - } - /** * Used to sanitize HTML *