]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/node/seniors/class_NodeReachableState.php
Fixed a lot broken stuff:
[hub.git] / application / hub / main / states / node / seniors / class_NodeReachableState.php
index 68a35fed2ce161166bd167f6d022fee7ef35d9ea..4241988774d756ed214742cf10ed29c7871f795f 100644 (file)
@@ -38,19 +38,12 @@ class NodeReachableState extends BaseNodeState implements Stateable {
        /**
         * Creates an instance of this class
         *
-        * @param       $nodeInstance   An instance of a NodeHelper class
         * @return      $stateInstance  An instance of a Stateable class
         */
-       public final static function createNodeReachableState (NodeHelper $nodeInstance) {
+       public final static function createNodeReachableState () {
                // Get new instance
                $stateInstance = new NodeReachableState();
 
-               // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE-STATE: Has changed from ' . $nodeInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
-
-               // Set the node instance
-               $stateInstance->setNodeInstance($nodeInstance);
-
                // Return the prepared instance
                return $stateInstance;
        }
@@ -62,7 +55,7 @@ class NodeReachableState extends BaseNodeState implements Stateable {
         */
        public function nodeAnnouncingToUpperHubs () {
                // Create the new state instance
-               NodeStateFactory::createNodeStateInstanceByName('announcing', $this->getNodeInstance());
+               NodeStateFactory::createNodeStateInstanceByName('announcing');
        }
 }