Removes a showing SuperToast. This method will poll the Queue as well as try
to show the next SuperToast if one exists in the Queue.
@param superToast the SuperToast (or SuperActivityToast) to be removed
500968
void removeSuperToast(final SuperToast superToast) {
        // If the SuperToast is a SuperActivityToast, remove it from the supplied ViewGroup
        if (superToast instanceof SuperActivityToast) {
            // If SuperActivityToast has already been dismissed, do not attempt to dismiss it again
            if (!superToast.isShowing()) {
                this.superToastPriorityQueue.remove(superToast);
                return;
            }

            final Animator animator = AnimationUtils.getHideAnimation(
                    (SuperActivityToast) superToast);
            animator.addListener(new Animator.AnimatorListener() {

                @Override
                public void onAnimationStart(Animator animation) {
                    // Do nothing
                }

                @Override
                public void onAnimationEnd(Animator animation) {
                    if (superToast.getOnDismissListener() != null) {
                        superToast.getOnDismissListener().onDismiss(superToast.getView(),
                                superToast.getStyle().dismissToken);
                    }

                    ((SuperActivityToast) superToast).getViewGroup().removeView(superToast.getView());

                    // Show the next SuperToast if any exist
                    Toaster.this.showNextSuperToast();
                }

                @Override
                public void onAnimationCancel(Animator animation) {
                    // Do nothing
                }

                @Override
                public void onAnimationRepeat(Animator animation) {
                    // Do nothing
                }
            });
            animator.start();

        // If the SuperToast is NOT a SuperActivityToast, remove it from the WindowManager
        } else {
            final WindowManager windowManager = (WindowManager) superToast.getContext()
                    .getSystemService(Context.WINDOW_SERVICE);

            // If the WindowManager is null, the SuperToast will linger indefinitely
            if (windowManager == null) throw new IllegalStateException(ERROR_ST_WINDOWMANAGER_NULL);

            try {
                windowManager.removeView(superToast.getView());
            } catch (IllegalArgumentException illegalArgumentException) {
                Log.e(getClass().getName(), illegalArgumentException.toString());
            }

            if (superToast.getOnDismissListener() != null) {
                superToast.getOnDismissListener().onDismiss(superToast.getView(),
                        superToast.getStyle().dismissToken);
            }

            // Show the next SuperToast in the queue if any exist after the hide duration
            this.sendDelayedMessage(superToast, Messages.SHOW_NEXT, AnimationUtils.HIDE_DURATION);
        }

        superToastPriorityQueue.poll();
    }
1119984
public void removeSubtree( Tree<T> subtree )
    {
        if ( children.remove( subtree ) )
        {
            subtree.parent = null;
        }
    }
1088600
public void removeLL() {
    if (head[0] == this)
      head[0] = nextTag;
    if (prevTag != null) {
      prevTag.nextTag = nextTag;
    }
    if (nextTag != null) {
      nextTag.prevTag = prevTag;
    }
  }
1187152
public void remove()
  {
    if (tc.isEntryEnabled()) 
      SibTr.entry(tc, "remove");
    
    if (anycastIHIterator != null)
    {  
      anycastIHIterator.remove();
    }
    
    if (tc.isEntryEnabled()) 
      SibTr.exit(tc, "remove");
  }
584575
@Override
  public void remove() {
    Assert.state(nextCalled.compareAndSet(true, false), "next was not called before remove");
    iterators.peek().remove();
  }
1240434
def delete(self, moveIssuesTo=None):
        
        params = {}
        if moveIssuesTo is not None:
            params['moveIssuesTo'] = moveIssuesTo

        super(Component, self).delete(params)
93860
@Override
	public void removeChild(final ITreeNode<T> child)
	{
		if (children != null)
		{
			children.remove(child);
		}
		else
		{
			children = new ArrayList<>();
		}

	}
1339512
def destroy(self):
        
        widget = self.widget
        if widget is not None:
            parent = self.parent_widget()
            if parent is not None:
                parent.removeView(widget)
            del self.widget
        super(AndroidToolkitObject, self).destroy()
802555
void remove(T obj) {
        _queue.remove(obj);
        if (_prioritize == obj) {
            _prioritize = null;
        }
    }
1306801
public void remove(final Binding b) {
        if (!disposedInd) {
            boolean unsubscribe = false;
            if (bindings == null) {
                return;
            }
            unsubscribe = bindings.remove(b);
            if (unsubscribe) {
                // if we removed successfully we then need to call dispose on it
                b.dispose();
            }
        }
    }
1133183
public void remove() {
        if(_mapIterator == null)
            throw new UnsupportedOperationException(Bundle.getErrorString("IteratorFactory_Iterator_removeUnsupported", new Object[]{this.getClass().getName()}));
        else _mapIterator.remove();
    }
1166208
void removeAll(final boolean mark) {
        if (mark) {
            AbstractInsnNode insn = first;
            while (insn != null) {
                AbstractInsnNode next = insn.next;
                insn.index = -1; // insn no longer belongs to an InsnList
                insn.prev = null;
                insn.next = null;
                insn = next;
            }
        }
        size = 0;
        first = null;
        last = null;
        cache = null;
    }
558749
public boolean removeControlListener(String name, Widget.OnTouchListener listener) {
        Widget control = findChildByName(name);
        if (control != null) {
            return control.removeTouchListener(listener);
        }
        return false;
    }
186132
@Override
	public void removeByCommerceNotificationTemplateId(
		long commerceNotificationTemplateId) {
		for (CommerceNotificationQueueEntry commerceNotificationQueueEntry : findByCommerceNotificationTemplateId(
				commerceNotificationTemplateId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceNotificationQueueEntry);
		}
	}
635254
def cancelOperation(self):
        '''
        
        '''
        if self.isLongTouchingPoint:
            self.toggleLongTouchPoint()
        elif self.isTouchingPoint:
            self.toggleTouchPoint()
        elif self.isGeneratingTestCondition:
            self.toggleGenerateTestCondition()
130308
public final void remove(MtasSolrStatus status) {
    Objects.requireNonNull(status);
    data.remove(status);
    index.remove(status.key());
  }
1045980
public void removeOnItemTouchListener(OnItemTouchListener listener) {
        mOnItemTouchListeners.remove(listener);
        if (mActiveOnItemTouchListener == listener) {
            mActiveOnItemTouchListener = null;
        }
    }