public function removeControl(Control $control)
    {
        $key = array_search($control, $this->controls);

        if ($key !== false) {
            unset($this->controls[$key]);
        }

        return $this;
    }
public function removeControl(Control $control)
    {
        $key = array_search($control, $this->controls);

        if ($key !== false) {
            unset($this->controls[$key]);
        }

        return $this;
    }
public function removeControl ( Control $ control ) { $ key = array_search ( $ control , $ this -> controls ) ; if ( $ key !== false ) { unset ( $ this -> controls [ $ key ] ) ; } return $ this ; }
Remove a control from the map.

@param Control $control Control being removed.

@return $this
Remove a control from the map .