]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove unreachable UserStatus#clearStatus route 38099/head
authorjld3103 <jld3103yt@gmail.com>
Fri, 5 May 2023 12:18:56 +0000 (14:18 +0200)
committerjld3103 <jld3103yt@gmail.com>
Mon, 8 May 2023 12:16:54 +0000 (14:16 +0200)
Signed-off-by: jld3103 <jld3103yt@gmail.com>
apps/user_status/lib/Controller/UserStatusController.php
apps/user_status/tests/Unit/Controller/UserStatusControllerTest.php

index aded923d07fa505b679e132ff25ae89eef36da2e..2d96cd90a40d3c77052c8aae0ba27edca3cbb1c2 100644 (file)
@@ -164,16 +164,6 @@ class UserStatusController extends OCSController {
                }
        }
 
-       /**
-        * @NoAdminRequired
-        *
-        * @return DataResponse
-        */
-       public function clearStatus(): DataResponse {
-               $this->service->clearStatus($this->userId);
-               return new DataResponse([]);
-       }
-
        /**
         * @NoAdminRequired
         *
index e4d2ab61eeeedc070d8337f2d5087e6374981306..ed0919eb9a51924dc4476558c401e5d623142e27 100644 (file)
@@ -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')