summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-09-27 18:41:25 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-10-17 19:13:14 +0200
commit3fe400a3cabfe70c7fe48720d6b5283baedc3b2d (patch)
tree9b2cd10956b55fb895875c045479c80a0edee9d8
parent53db1fe5ac24f569918fa7cfb3dcd67054099836 (diff)
downloadnextcloud-server-3fe400a3cabfe70c7fe48720d6b5283baedc3b2d.tar.gz
nextcloud-server-3fe400a3cabfe70c7fe48720d6b5283baedc3b2d.zip
Simplify WizardResult
-rw-r--r--apps/user_ldap/lib/wizard.php1
-rw-r--r--apps/user_ldap/lib/wizardresult.php8
2 files changed, 0 insertions, 9 deletions
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index ff81df8bf03..04802205cd4 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/wizard.php
@@ -81,7 +81,6 @@ class Wizard extends LDAPUtility {
\OCP\Util::writeLog('user_ldap', 'Wiz: detected Port '. $p, \OCP\Util::DEBUG);
$this->result->addChange('ldap_port', $p);
$this->result->addChange('ldap_tls', intval($t));
-// $this->result->addSpecific('port', $p);
return $this->result;
}
}
diff --git a/apps/user_ldap/lib/wizardresult.php b/apps/user_ldap/lib/wizardresult.php
index 1d683fee976..2140f654fd0 100644
--- a/apps/user_ldap/lib/wizardresult.php
+++ b/apps/user_ldap/lib/wizardresult.php
@@ -25,7 +25,6 @@ namespace OCA\user_ldap\lib;
class WizardResult {
protected $changes = array();
- protected $specifics = array();
public function addChange($key, $value) {
$this->changes[$key] = $value;
@@ -35,16 +34,9 @@ class WizardResult {
return count($this->changes) > 0;
}
- public function addSpecific($key, $value) {
- $this->specifics[$key] = $value;
- }
-
public function getResultArray() {
$result = array();
$result['changes'] = $this->changes;
- foreach($this->specifics as $key => $value) {
- $result[$key] = $value;
- }
return $result;
}
} \ No newline at end of file