]> source.dussan.org Git - nextcloud-server.git/commitdiff
Simplify WizardResult
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 27 Sep 2013 16:41:25 +0000 (18:41 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Thu, 17 Oct 2013 17:13:14 +0000 (19:13 +0200)
apps/user_ldap/lib/wizard.php
apps/user_ldap/lib/wizardresult.php

index ff81df8bf035956098ddc7ce5ef175de2771c653..04802205cd4fdc054af8c04e63061b46644c5277 100644 (file)
@@ -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;
                        }
                }
index 1d683fee97628a1befd83e03817ce8002854160b..2140f654fd0d836bccb4d88d0ffc6e6687d8b675 100644 (file)
@@ -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