Skip to content

Commit c026a7a

Browse files
committed
refactor: Remove deprecated AutoCompleteEvent
No longer used. Signed-off-by: Carl Schwan <carlschwan@kde.org>
1 parent 0302d60 commit c026a7a

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
@@ -3101,22 +3101,6 @@
31013101
<code><![CDATA[IToken::PERMANENT_TOKEN]]></code>
31023102
</DeprecatedClass>
31033103
</file>
3104-
<file src="core/Controller/AutoCompleteController.php">
3105-
<DeprecatedClass>
3106-
<code><![CDATA[new AutoCompleteEvent([
3107-
'search' => $search,
3108-
'results' => $results,
3109-
'itemType' => $itemType,
3110-
'itemId' => $itemId,
3111-
'sorter' => $sorter,
3112-
'shareTypes' => $shareTypes,
3113-
'limit' => $limit,
3114-
])]]></code>
3115-
</DeprecatedClass>
3116-
<DeprecatedMethod>
3117-
<code><![CDATA[dispatch]]></code>
3118-
</DeprecatedMethod>
3119-
</file>
31203104
<file src="core/Controller/ClientFlowLoginV2Controller.php">
31213105
<TypeDoesNotContainType>
31223106
<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
@@ -1936,7 +1936,7 @@
19361936
{
19371937
"name": "sorter",
19381938
"in": "query",
1939-
"description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
1939+
"description": "can be piped, top priority first, e.g.: \"commenters|share-recipients\"",
19401940
"schema": {
19411941
"type": "string",
19421942
"nullable": true,

core/openapi.json

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

lib/composer/composer/autoload_classmap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@
247247
'OCP\\Capabilities\\ICapability' => $baseDir . '/lib/public/Capabilities/ICapability.php',
248248
'OCP\\Capabilities\\IInitialStateExcludedCapability' => $baseDir . '/lib/public/Capabilities/IInitialStateExcludedCapability.php',
249249
'OCP\\Capabilities\\IPublicCapability' => $baseDir . '/lib/public/Capabilities/IPublicCapability.php',
250-
'OCP\\Collaboration\\AutoComplete\\AutoCompleteEvent' => $baseDir . '/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php',
251250
'OCP\\Collaboration\\AutoComplete\\AutoCompleteFilterEvent' => $baseDir . '/lib/public/Collaboration/AutoComplete/AutoCompleteFilterEvent.php',
252251
'OCP\\Collaboration\\AutoComplete\\IManager' => $baseDir . '/lib/public/Collaboration/AutoComplete/IManager.php',
253252
'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
@@ -288,7 +288,6 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
288288
'OCP\\Capabilities\\ICapability' => __DIR__ . '/../../..' . '/lib/public/Capabilities/ICapability.php',
289289
'OCP\\Capabilities\\IInitialStateExcludedCapability' => __DIR__ . '/../../..' . '/lib/public/Capabilities/IInitialStateExcludedCapability.php',
290290
'OCP\\Capabilities\\IPublicCapability' => __DIR__ . '/../../..' . '/lib/public/Capabilities/IPublicCapability.php',
291-
'OCP\\Collaboration\\AutoComplete\\AutoCompleteEvent' => __DIR__ . '/../../..' . '/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php',
292291
'OCP\\Collaboration\\AutoComplete\\AutoCompleteFilterEvent' => __DIR__ . '/../../..' . '/lib/public/Collaboration/AutoComplete/AutoCompleteFilterEvent.php',
293292
'OCP\\Collaboration\\AutoComplete\\IManager' => __DIR__ . '/../../..' . '/lib/public/Collaboration/AutoComplete/IManager.php',
294293
'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
@@ -5594,7 +5594,7 @@
55945594
{
55955595
"name": "sorter",
55965596
"in": "query",
5597-
"description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
5597+
"description": "can be piped, top priority first, e.g.: \"commenters|share-recipients\"",
55985598
"schema": {
55995599
"type": "string",
56005600
"nullable": true,

0 commit comments

Comments
 (0)