factory method for the remove component

@return remove component
960689
protected Component newRemoveComponent() {
        return new PaletteButton("removeButton") {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onComponentTag(ComponentTag tag) {
                super.onComponentTag(tag);
                tag.getAttributes().put("onclick", getRemoveOnClickJS());
            }
        };
    }
1271177
public static function withDefaults(): ComponentFactory
    {
        return new self(
            (new ComponentBuilder())
                ->setClass(Logger::class)
                ->addDependency('handlers', 'pushHandler')
                ->addDependency('processors', 'pushProcessor'),
            (new ComponentBuilder())
                ->setNamespace('Monolog\Handler')
                ->setSuffix('Handler')
                ->addDependency('processors', 'pushProcessor')
                ->addDependency('formatter', 'setFormatter'),
            (new ComponentBuilder())
                ->setNamespace('Monolog\Formatter')
                ->setSuffix('Formatter'),
            (new ComponentBuilder())
                ->setNamespace('Monolog\Processor')
                ->setSuffix('Processor')
        );
    }
465127
Optional<PackingPlan.InstancePlan> removeAnyInstanceOfComponent(String component) {
    Optional<PackingPlan.InstancePlan> instancePlan = getAnyInstanceOfComponent(component);
    if (instancePlan.isPresent()) {
      PackingPlan.InstancePlan plan = instancePlan.get();
      this.instances.remove(plan);
      return instancePlan;
    }
    return Optional.absent();
  }
1139794
public function removeLast(): self
    {
        $tmpArray = $this->getArray();

        \array_pop($tmpArray);

        return static::create(
            $tmpArray,
            $this->iteratorClass,
            false
        );
    }
697960
public Component release ()
    {
        _comp.removeMouseMotionListener(_motionCatcher);

        for (int ii=0; ii < _mls.length; ii++) {
            _comp.addMouseListener(_mls[ii]);
        }
        _mls = null;

        for (int ii=0; ii < _mmls.length; ii++) {
            // fake the last movement
            if (_lastMotion != null) {
                _mmls[ii].mouseMoved(_lastMotion);
            }
            _comp.addMouseMotionListener(_mmls[ii]);
        }
        _mmls = null;

        return _comp;
    }
984417
public function removeProcessed()
    {
        if ( $this->hasAttribute( 'action' ) )
        {
            unset( $this->attributes['action'] );
        }

        if ( $this->getItemCount() > 0 )
        {
            unset( $this->attributes['items'] );
        }

        return $this;
    }
1110502
public function remove() : self {
      $this->type = static::INVALID_TYPE;
      $this->value = static::INVALID_VALUE;
      $this->line = static::INVALID_LINE;
      $this->index = static::INVALID_INDEX;
      return $this;
    }
9624
def deactivate(self):
        

        raise foundations.exceptions.ProgrammingError(
            "{0} | '{1}' Component cannot be deactivated!".format(self.__class__.__name__, self.__name))
1182247
public Builder clear() {
      traceId = null;
      parentId = null;
      id = null;
      kind = null;
      name = null;
      timestamp = 0L;
      duration = 0L;
      localEndpoint = null;
      remoteEndpoint = null;
      if (annotations != null) annotations.clear();
      if (tags != null) tags.clear();
      flags = 0;
      return this;
    }
37237
public function clear () {
        $this->_data = null;
        $this->_count = null;
        $this->getConnection ()->getClient ()->delete ($this->name);
        return $this;
    }
471043
public T remove() {
        lock.lock();

        try {
            if(queue.isEmpty())
                return null;
            El<T> el=queue.poll();
            count-=el.size;
            not_full.signalAll();
            return el.el;
        }
        finally {
            lock.unlock();
        }
    }
375981
public function remove()
    {
        $args = func_get_args();
        
        if (count($args) == 0) {
            return $this;
        }
        
        $last = array_pop($args);
        
        $pointer = &$this->data;
        foreach ($args as $i => $step) {
            if (!isset($pointer[$step])
                || !is_array($pointer[$step])
            ) {
                return $this;
            }

            $pointer = &$pointer[$step];
        }
        
        unset($pointer[$last]);
        
        return $this;
    }
705469
public RouteBuilder delete(){

        if(!methods.contains(HttpMethod.DELETE)){
            methods.add(HttpMethod.DELETE);
        }
        return this;
    }
349264
public InlineMenuRowBuilder removeLast() {
        List<InlineMenuButton> buttons = buttons();

        if (buttons.size() != 0)
            buttons.remove(buttons.size() - 1);

        return this;
    }
44196
void remove(final WComponent aChild) {
		ComponentModel model = getOrCreateComponentModel();

		if (model.getChildren() == null) {
			model.setChildren(copyChildren(getComponentModel().getChildren()));
		}

		if (model.getChildren().remove(aChild)) {
			// Deallocate children list if possible, to reduce session size.
			if (model.getChildren().isEmpty()) {
				model.setChildren(null);
			}

			// The child component has been successfully removed so clean up the context.
			aChild.reset();

			// If the parent has been set in the shared model, we must override
			// it in the session model for the component to be considered removed.
			// This unfortunately means that the model will remain in the user's session.
			if (aChild.getParent() != null && aChild instanceof AbstractWComponent) {
				((AbstractWComponent) aChild).getOrCreateComponentModel().setParent(null);
				((AbstractWComponent) aChild).removeNotify();
			}
		}
	}
1311800
public T remove() {
        final Node<T> previous = iterator.currentNode.previous;
        final T element = remove(iterator.currentNode);
        iterator.currentNode = previous;
        return element;
    }
13325
public function build(): RemoveBindingRequest
	{
		$instance = new RemoveBindingRequest();
		if ($this->name === null) {
			throw new BuilderException('Property [name] is required.');
		}
		$instance->name = $this->name;
		return $instance;
	}