summaryrefslogtreecommitdiffstats
path: root/apps/federation/lib/TrustedServers.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-27 08:13:47 +0200
committerJoas Schilling <coding@schilljs.com>2021-04-27 08:13:47 +0200
commit1029abc8f6e6935680303ffdb57c9c6fb11c4039 (patch)
treef3913b7b7ad6624804d523f32545ffd08dff76c4 /apps/federation/lib/TrustedServers.php
parent3f0b7fd289bf6fd9a9200c63160d1133618b2583 (diff)
downloadnextcloud-server-1029abc8f6e6935680303ffdb57c9c6fb11c4039.tar.gz
nextcloud-server-1029abc8f6e6935680303ffdb57c9c6fb11c4039.zip
More cleaning after auto-add removal
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/federation/lib/TrustedServers.php')
-rw-r--r--apps/federation/lib/TrustedServers.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/apps/federation/lib/TrustedServers.php b/apps/federation/lib/TrustedServers.php
index 92454e03a55..29b58555238 100644
--- a/apps/federation/lib/TrustedServers.php
+++ b/apps/federation/lib/TrustedServers.php
@@ -131,28 +131,6 @@ class TrustedServers {
}
/**
- * enable/disable to automatically add servers to the list of trusted servers
- * once a federated share was created and accepted successfully
- *
- * @param bool $status
- */
- public function setAutoAddServers($status) {
- $value = $status ? '1' : '0';
- $this->config->setAppValue('federation', 'autoAddServers', $value);
- }
-
- /**
- * return if we automatically add servers to the list of trusted servers
- * once a federated share was created and accepted successfully
- *
- * @return bool
- */
- public function getAutoAddServers() {
- $value = $this->config->getAppValue('federation', 'autoAddServers', '0');
- return $value === '1';
- }
-
- /**
* get shared secret for the given server
*
* @param string $url