Unregister a function

@param string    $name   The function name
@return KTemplateEngineTwig
359855
public function unregisterFunction($name)
    {
        parent::unregisterFunction($name);

        $functions = $this->_twig->getFunctions();

        if(isset($functions[$name])) {
            unset($functions[$name]);
        }

        return $this;
    }
394773
public function unregister($name)
    {
        $widget = parent::unregister($name);
        $paths = $widget->getPaths();
        if (!is_array($paths)) {
            $this->log->warn(get_class($widget).'::getPaths has invalid return value.');
            $paths = array();
        }

        foreach ($paths as $path) {
            unset($this->paths[$path]);
        }

        return $widget;
    }
1011023
public function removeGlobalMethod($name)
    {
        if (isset($this->_appScopeTrait) && isset($this->app->_hookTrait)) {
            $this->app->removeHook('global-method-'.$name);
        }

        return $this;
    }
403935
public function remove($name)
    {
        if (!$this->isColl) {
            if (array_key_exists($name, $this->data)) {
                $this->data[$name] = null;
            }
        } else {
            unset($this->data[$name]);
        }
        return $this;
    }
176569
public function unregister($name)
    {
        $task = $parent::unregister($name);
        foreach ($this->slot[$task->getPluginSlot()] as $i => $check) {
            if ($check === $task) {
                unset($this->slot[$task->getPluginSlot()][$i]);
            }
        }

        return $task;
    }
631125
protected function unregisterInstance($key, $name)
    {
        if ($this->hasOption($key)) {
            $instances = $this->getOption($key);

            if (($index = array_search($name, $instances)) !== false) {
                unset($instances[$index]);
                $this->setOption($key, $instances);
                $this->registerMetadataService();
            }
        }
    }
636126
public static function destroy($name)
    {
        if (is_array($name)) {
            foreach ($name as $v) {
                self::destroy($v);
            }
        } elseif (is_string($name) && self::hasTask($name)) {
            unset(self::$tasks[$name]);
        }
    }
1262329
static public function del($name)
    {
        if (isset(Loader::$callback['CacheDel'])) {
            return call_user_func_array(Loader::$callback['CacheDel'], func_get_args());
        }
        return self::check() && @unlink(self::$cachepath . $name);
    }
1237022
protected function unregisterPlugin($name)
    {
        $plugins = $this->loadPlugins();

        if (!isset($plugins[$name])) {
            return null;
        }

        $plugin = $plugins[$name];
        unset($plugins[$name]);
        $this->savePlugins($plugins);
        return $plugin;
    }
293998
public function unset_function($name)
    {
        if (isset($this->functions[$name])) {
            unset($this->functions[$name]);
        }
        return $this;
    }
1015761
public function disable( $name )
	{
		$list = array();

		foreach( (array) $name as $item ) {
			$list[$item] = '';
		}

		$this->substitute( $list );

		return $this;
	}
715950
public function forgetCustomProperty(string $name)
    {
        $customProperties = $this->custom_properties;

        Arr::forget($customProperties, $name);

        $this->custom_properties = $customProperties;

        return $this;
    }
762354
public function removeHeader(string $name)
    {
        if (array_key_exists($name, $this->headers)) {
            unset($this->headers[$name]);
        }

        return $this;
    }
114523
public function unsetField($name)
    {
        $this->checkFieldExist($name);
        unset($this->fields[$name], $this->types[$name]);

        return $this;
    }
1114008
function unregister ($nameOrNames)
  {
    if (is_array ($nameOrNames))
      unset ($this->items[$nameOrNames]);
    else foreach ($this->items as $i)
      unset ($this->items[$i]);
    return $this;
  }
134054
public function unregister($name)
    {
        if (!isset($this->registry[$name])) {
            throw new Exception('Object with name "'.$name.'" is not registered');
        }

        $object = $this->registry[$name];
        unset($this->registry[$name]);

        return $object;
    }
967877
public function remove($name)
    {
        $this->instance->unlock();
        $result = $this->instance->remove($name);
        $this->instance->lock();
        return $result;
    }