Skip to content

Commit 30b1737

Browse files
CarlSchwancome-nc
authored andcommitted
refactor: Remove deprecated AutoCompleteEvent
No longer used. Signed-off-by: Carl Schwan <carlschwan@kde.org>
1 parent 4c6244d commit 30b1737

8 files changed

Lines changed: 4 additions & 119 deletions

File tree

build/psalm-baseline.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3092,22 +3092,6 @@
30923092
<code><![CDATA[IToken::PERMANENT_TOKEN]]></code>
30933093
</DeprecatedClass>
30943094
</file>
3095-
<file src="core/Controller/AutoCompleteController.php">
3096-
<DeprecatedClass>
3097-
<code><![CDATA[new AutoCompleteEvent([
3098-
'search' => $search,
3099-
'results' => $results,
3100-
'itemType' => $itemType,
3101-
'itemId' => $itemId,
3102-
'sorter' => $sorter,
3103-
'shareTypes' => $shareTypes,
3104-
'limit' => $limit,
3105-
])]]></code>
3106-
</DeprecatedClass>
3107-
<DeprecatedMethod>
3108-
<code><![CDATA[dispatch]]></code>
3109-
</DeprecatedMethod>
3110-
</file>
31113095
<file src="core/Controller/ClientFlowLoginV2Controller.php">
31123096
<TypeDoesNotContainType>
31133097
<code><![CDATA[!is_string($stateToken)]]></code>

core/Controller/AutoCompleteController.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
1616
use OCP\AppFramework\Http\DataResponse;
1717
use OCP\AppFramework\OCSController;
18-
use OCP\Collaboration\AutoComplete\AutoCompleteEvent;
1918
use OCP\Collaboration\AutoComplete\AutoCompleteFilterEvent;
2019
use OCP\Collaboration\AutoComplete\IManager;
2120
use OCP\Collaboration\Collaborators\ISearch;
@@ -43,7 +42,7 @@ public function __construct(
4342
* @param string $search Text to search for
4443
* @param string|null $itemType Type of the items to search for
4544
* @param string|null $itemId ID of the items to search for
46-
* @param string|null $sorter can be piped, top prio first, e.g.: "commenters|share-recipients"
45+
* @param string|null $sorter can be piped, top priority first, e.g.: "commenters|share-recipients"
4746
* @param list<int> $shareTypes Types of shares to search for
4847
* @param int $limit Maximum number of results to return
4948
*
@@ -58,18 +57,6 @@ public function get(string $search, ?string $itemType, ?string $itemId, ?string
5857
// result from search() – thus nothing else to do here.
5958
[$results,] = $this->collaboratorSearch->search($search, $shareTypes, false, $limit, 0);
6059

61-
$event = new AutoCompleteEvent([
62-
'search' => $search,
63-
'results' => $results,
64-
'itemType' => $itemType,
65-
'itemId' => $itemId,
66-
'sorter' => $sorter,
67-
'shareTypes' => $shareTypes,
68-
'limit' => $limit,
69-
]);
70-
$this->dispatcher->dispatch(IManager::class . '::filterResults', $event);
71-
$results = $event->getResults();
72-
7360
$event = new AutoCompleteFilterEvent(
7461
$results,
7562
$search,

core/openapi-full.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@
19401940
{
19411941
"name": "sorter",
19421942
"in": "query",
1943-
"description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
1943+
"description": "can be piped, top priority first, e.g.: \"commenters|share-recipients\"",
19441944
"schema": {
19451945
"type": "string",
19461946
"nullable": true,

core/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@
19401940
{
19411941
"name": "sorter",
19421942
"in": "query",
1943-
"description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
1943+
"description": "can be piped, top priority first, e.g.: \"commenters|share-recipients\"",
19441944
"schema": {
19451945
"type": "string",
19461946
"nullable": true,

lib/composer/composer/autoload_classmap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@
248248
'OCP\\Capabilities\\ICapability' => $baseDir . '/lib/public/Capabilities/ICapability.php',
249249
'OCP\\Capabilities\\IInitialStateExcludedCapability' => $baseDir . '/lib/public/Capabilities/IInitialStateExcludedCapability.php',
250250
'OCP\\Capabilities\\IPublicCapability' => $baseDir . '/lib/public/Capabilities/IPublicCapability.php',
251-
'OCP\\Collaboration\\AutoComplete\\AutoCompleteEvent' => $baseDir . '/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php',
252251
'OCP\\Collaboration\\AutoComplete\\AutoCompleteFilterEvent' => $baseDir . '/lib/public/Collaboration/AutoComplete/AutoCompleteFilterEvent.php',
253252
'OCP\\Collaboration\\AutoComplete\\IManager' => $baseDir . '/lib/public/Collaboration/AutoComplete/IManager.php',
254253
'OCP\\Collaboration\\AutoComplete\\ISorter' => $baseDir . '/lib/public/Collaboration/AutoComplete/ISorter.php',

lib/composer/composer/autoload_static.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
289289
'OCP\\Capabilities\\ICapability' => __DIR__ . '/../../..' . '/lib/public/Capabilities/ICapability.php',
290290
'OCP\\Capabilities\\IInitialStateExcludedCapability' => __DIR__ . '/../../..' . '/lib/public/Capabilities/IInitialStateExcludedCapability.php',
291291
'OCP\\Capabilities\\IPublicCapability' => __DIR__ . '/../../..' . '/lib/public/Capabilities/IPublicCapability.php',
292-
'OCP\\Collaboration\\AutoComplete\\AutoCompleteEvent' => __DIR__ . '/../../..' . '/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php',
293292
'OCP\\Collaboration\\AutoComplete\\AutoCompleteFilterEvent' => __DIR__ . '/../../..' . '/lib/public/Collaboration/AutoComplete/AutoCompleteFilterEvent.php',
294293
'OCP\\Collaboration\\AutoComplete\\IManager' => __DIR__ . '/../../..' . '/lib/public/Collaboration/AutoComplete/IManager.php',
295294
'OCP\\Collaboration\\AutoComplete\\ISorter' => __DIR__ . '/../../..' . '/lib/public/Collaboration/AutoComplete/ISorter.php',

lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php

Lines changed: 0 additions & 84 deletions
This file was deleted.

openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5602,7 +5602,7 @@
56025602
{
56035603
"name": "sorter",
56045604
"in": "query",
5605-
"description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
5605+
"description": "can be piped, top priority first, e.g.: \"commenters|share-recipients\"",
56065606
"schema": {
56075607
"type": "string",
56085608
"nullable": true,

0 commit comments

Comments
 (0)