summaryrefslogtreecommitdiffstats
path: root/apps/user_status
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-05-05 14:18:56 +0200
committerjld3103 <jld3103yt@gmail.com>2023-05-08 14:16:54 +0200
commite6e2b873a396764065b99a963af0ec6eb6d37a95 (patch)
tree3c2d20438a3f36e803fa3c85fe0878570f986966 /apps/user_status
parent598859d96995cf8857da9733883cf6ed95fd1524 (diff)
downloadnextcloud-server-e6e2b873a396764065b99a963af0ec6eb6d37a95.tar.gz
nextcloud-server-e6e2b873a396764065b99a963af0ec6eb6d37a95.zip
Remove unreachable UserStatus#clearStatus route
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/user_status')
-rw-r--r--apps/user_status/lib/Controller/UserStatusController.php10
-rw-r--r--apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php9
2 files changed, 0 insertions, 19 deletions
diff --git a/apps/user_status/lib/Controller/UserStatusController.php b/apps/user_status/lib/Controller/UserStatusController.php
index aded923d07f..2d96cd90a40 100644
--- a/apps/user_status/lib/Controller/UserStatusController.php
+++ b/apps/user_status/lib/Controller/UserStatusController.php
@@ -169,16 +169,6 @@ class UserStatusController extends OCSController {
*
* @return DataResponse
*/
- public function clearStatus(): DataResponse {
- $this->service->clearStatus($this->userId);
- return new DataResponse([]);
- }
-
- /**
- * @NoAdminRequired
- *
- * @return DataResponse
- */
public function clearMessage(): DataResponse {
$this->service->clearMessage($this->userId);
return new DataResponse([]);
diff --git a/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php b/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php
index e4d2ab61eee..ed0919eb9a5 100644
--- a/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php
+++ b/apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php
@@ -326,15 +326,6 @@ class UserStatusControllerTest extends TestCase {
];
}
- 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')