Skip to content

Commit da86934

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

8 files changed

Lines changed: 4 additions & 118 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
@@ -14,7 +14,6 @@
1414
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
1515
use OCP\AppFramework\Http\DataResponse;
1616
use OCP\AppFramework\OCSController;
17-
use OCP\Collaboration\AutoComplete\AutoCompleteEvent;
1817
use OCP\Collaboration\AutoComplete\AutoCompleteFilterEvent;
1918
use OCP\Collaboration\AutoComplete\IManager;
2019
use OCP\Collaboration\Collaborators\ISearch;
@@ -42,7 +41,7 @@ public function __construct(
4241
* @param string $search Text to search for
4342
* @param string|null $itemType Type of the items to search for
4443
* @param string|null $itemId ID of the items to search for
45-
* @param string|null $sorter can be piped, top prio first, e.g.: "commenters|share-recipients"
44+
* @param string|null $sorter can be piped, top prior first, e.g.: "commenters|share-recipients"
4645
* @param list<int> $shareTypes Types of shares to search for
4746
* @param int $limit Maximum number of results to return
4847
*
@@ -57,18 +56,6 @@ public function get(string $search, ?string $itemType, ?string $itemId, ?string
5756
// result from search() – thus nothing else to do here.
5857
[$results,] = $this->collaboratorSearch->search($search, $shareTypes, false, $limit, 0);
5958

60-
$event = new AutoCompleteEvent([
61-
'search' => $search,
62-
'results' => $results,
63-
'itemType' => $itemType,
64-
'itemId' => $itemId,
65-
'sorter' => $sorter,
66-
'shareTypes' => $shareTypes,
67-
'limit' => $limit,
68-
]);
69-
$this->dispatcher->dispatch(IManager::class . '::filterResults', $event);
70-
$results = $event->getResults();
71-
7259
$event = new AutoCompleteFilterEvent(
7360
$results,
7461
$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 prior 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 prior 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
@@ -244,7 +244,6 @@
244244
'OCP\\Capabilities\\ICapability' => $baseDir . '/lib/public/Capabilities/ICapability.php',
245245
'OCP\\Capabilities\\IInitialStateExcludedCapability' => $baseDir . '/lib/public/Capabilities/IInitialStateExcludedCapability.php',
246246
'OCP\\Capabilities\\IPublicCapability' => $baseDir . '/lib/public/Capabilities/IPublicCapability.php',
247-
'OCP\\Collaboration\\AutoComplete\\AutoCompleteEvent' => $baseDir . '/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php',
248247
'OCP\\Collaboration\\AutoComplete\\AutoCompleteFilterEvent' => $baseDir . '/lib/public/Collaboration/AutoComplete/AutoCompleteFilterEvent.php',
249248
'OCP\\Collaboration\\AutoComplete\\IManager' => $baseDir . '/lib/public/Collaboration/AutoComplete/IManager.php',
250249
'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
@@ -285,7 +285,6 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
285285
'OCP\\Capabilities\\ICapability' => __DIR__ . '/../../..' . '/lib/public/Capabilities/ICapability.php',
286286
'OCP\\Capabilities\\IInitialStateExcludedCapability' => __DIR__ . '/../../..' . '/lib/public/Capabilities/IInitialStateExcludedCapability.php',
287287
'OCP\\Capabilities\\IPublicCapability' => __DIR__ . '/../../..' . '/lib/public/Capabilities/IPublicCapability.php',
288-
'OCP\\Collaboration\\AutoComplete\\AutoCompleteEvent' => __DIR__ . '/../../..' . '/lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php',
289288
'OCP\\Collaboration\\AutoComplete\\AutoCompleteFilterEvent' => __DIR__ . '/../../..' . '/lib/public/Collaboration/AutoComplete/AutoCompleteFilterEvent.php',
290289
'OCP\\Collaboration\\AutoComplete\\IManager' => __DIR__ . '/../../..' . '/lib/public/Collaboration/AutoComplete/IManager.php',
291290
'OCP\\Collaboration\\AutoComplete\\ISorter' => __DIR__ . '/../../..' . '/lib/public/Collaboration/AutoComplete/ISorter.php',

lib/public/Collaboration/AutoComplete/AutoCompleteEvent.php

Lines changed: 0 additions & 83 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 prior first, e.g.: \"commenters|share-recipients\"",
55985598
"schema": {
55995599
"type": "string",
56005600
"nullable": true,

0 commit comments

Comments
 (0)