diff --git a/mod/fsuggest.php b/mod/fsuggest.php
deleted file mode 100644
index 73b0f09e8..000000000
--- a/mod/fsuggest.php
+++ /dev/null
@@ -1,96 +0,0 @@
-argc != 2) {
- return;
- }
-
- $contact_id = intval($a->argv[1]);
- if (empty($contact_id)) {
- return;
- }
-
- // We do query the "uid" as well to ensure that it is our contact
- if (!DBA::exists('contact', ['id' => $contact_id, 'uid' => local_user()])) {
- notice(DI::l10n()->t('Contact not found.') . EOL);
- return;
- }
-
- $suggest_contact_id = intval($_POST['suggest']);
- if (empty($suggest_contact_id)) {
- return;
- }
-
- // We do query the "uid" as well to ensure that it is our contact
- $contact = DBA::selectFirst('contact', ['name', 'url', 'request', 'avatar'], ['id' => $suggest_contact_id, 'uid' => local_user()]);
- if (!DBA::isResult($contact)) {
- notice(DI::l10n()->t('Suggested contact not found.') . EOL);
- return;
- }
-
- $note = Strings::escapeHtml(trim($_POST['note'] ?? ''));
-
- $fields = ['uid' => local_user(),'cid' => $contact_id, 'name' => $contact['name'],
- 'url' => $contact['url'], 'request' => $contact['request'],
- 'photo' => $contact['avatar'], 'note' => $note, 'created' => DateTimeFormat::utcNow()];
- DBA::insert('fsuggest', $fields);
-
- Worker::add(PRIORITY_HIGH, 'Notifier', Delivery::SUGGESTION, DBA::lastInsertId());
-
- info(DI::l10n()->t('Friend suggestion sent.') . EOL);
-}
-
-function fsuggest_content(App $a)
-{
- if (! local_user()) {
- notice(DI::l10n()->t('Permission denied.') . EOL);
- return;
- }
-
- if ($a->argc != 2) {
- return;
- }
-
- $contact_id = intval($a->argv[1]);
-
- $contact = DBA::selectFirst('contact', [], ['id' => $contact_id, 'uid' => local_user()]);
- if (! DBA::isResult($contact)) {
- notice(DI::l10n()->t('Contact not found.') . EOL);
- return;
- }
-
- $o = '
' . DI::l10n()->t('Suggest Friends') . '
';
-
- $o .= '' . DI::l10n()->t('Suggest a friend for %s', $contact['name']) . '
';
-
- $o .= '';
-
- return $o;
-}
diff --git a/src/Core/ACL.php b/src/Core/ACL.php
index cfe46e770..b60421877 100644
--- a/src/Core/ACL.php
+++ b/src/Core/ACL.php
@@ -19,119 +19,6 @@ use Friendica\Model\Group;
*/
class ACL
{
- /**
- * Returns a select input tag with all the contact of the local user
- *
- * @param string $selname Name attribute of the select input tag
- * @param string $selclass Class attribute of the select input tag
- * @param array $options Available options:
- * - size: length of the select box
- * - mutual_friends: Only used for the hook
- * - single: Only used for the hook
- * - exclude: Only used for the hook
- * @param array $preselected Contact ID that should be already selected
- * @return string
- * @throws \Exception
- */
- public static function getSuggestContactSelectHTML($selname, $selclass, array $options = [], array $preselected = [])
- {
- $a = DI::app();
-
- $networks = null;
-
- $size = ($options['size'] ?? 0) ?: 4;
- $mutual = !empty($options['mutual_friends']);
- $single = !empty($options['single']) && empty($options['multiple']);
- $exclude = $options['exclude'] ?? false;
-
- switch (($options['networks'] ?? '') ?: Protocol::PHANTOM) {
- case 'DFRN_ONLY':
- $networks = [Protocol::DFRN];
- break;
-
- case 'PRIVATE':
- $networks = [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::MAIL, Protocol::DIASPORA];
- break;
-
- case 'TWO_WAY':
- if (!empty($a->user['prvnets'])) {
- $networks = [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::MAIL, Protocol::DIASPORA];
- } else {
- $networks = [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::MAIL, Protocol::DIASPORA, Protocol::OSTATUS];
- }
- break;
-
- default: /// @TODO Maybe log this call?
- break;
- }
-
- $x = ['options' => $options, 'size' => $size, 'single' => $single, 'mutual' => $mutual, 'exclude' => $exclude, 'networks' => $networks];
-
- Hook::callAll('contact_select_options', $x);
-
- $o = '';
-
- $sql_extra = '';
-
- if (!empty($x['mutual'])) {
- $sql_extra .= sprintf(" AND `rel` = %d ", intval(Contact::FRIEND));
- }
-
- if (!empty($x['exclude'])) {
- $sql_extra .= sprintf(" AND `id` != %d ", intval($x['exclude']));
- }
-
- if (!empty($x['networks'])) {
- /// @TODO rewrite to foreach()
- array_walk($x['networks'], function (&$value) {
- $value = "'" . DBA::escape($value) . "'";
- });
- $str_nets = implode(',', $x['networks']);
- $sql_extra .= " AND `network` IN ( $str_nets ) ";
- }
-
- $tabindex = (!empty($options['tabindex']) ? 'tabindex="' . $options["tabindex"] . '"' : '');
-
- if (!empty($x['single'])) {
- $o .= "