diff --git a/apps/user_status/lib/Controller/UserStatusController.php b/apps/user_status/lib/Controller/UserStatusController.php index aded923d07fa5..2d96cd90a40d3 100644 --- a/apps/user_status/lib/Controller/UserStatusController.php +++ b/apps/user_status/lib/Controller/UserStatusController.php @@ -164,16 +164,6 @@ public function setCustomMessage(?string $statusIcon, } } - /** - * @NoAdminRequired - * - * @return DataResponse - */ - public function clearStatus(): DataResponse { - $this->service->clearStatus($this->userId); - return new DataResponse([]); - } - /** * @NoAdminRequired * diff --git a/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php b/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php index e4d2ab61eeeed..ed0919eb9a519 100644 --- a/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php +++ b/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php @@ -326,15 +326,6 @@ public function setCustomMessageDataProvider(): array { ]; } - public function testClearStatus(): void { - $this->service->expects($this->once()) - ->method('clearStatus') - ->with('john.doe'); - - $response = $this->controller->clearStatus(); - $this->assertEquals([], $response->getData()); - } - public function testClearMessage(): void { $this->service->expects($this->once()) ->method('clearMessage')