Removes the ActivityMonitor
559111
private void stopActivityMonitor(){
		try {
			// Remove the monitor added during startup
			if (activityMonitor != null) {
				inst.removeMonitor(activityMonitor);
				activityMonitor = null;
			}
		} catch (Exception ignored) {}

	}
1117782
def _cleanup(self):
        '''
        
        '''
        self._ack_listener = None
        self._nack_listener = None
        self._broker_cancel_cb_map = None
        super(RabbitBasicClass, self)._cleanup()
868187
synchronized void deactivate() throws Exception {
        this.proxyActivator.deactivate();
        this.instrumentation.removeTransformer(this.classAvailableTransformer);
        this.instrumentation.removeTransformer(this.transformer);
        this.shuttingDown = true;

        // Save the classes that have listeners so we can retransform
        Collection<Class<?>> probedClasses = processRemovedListeners(allRegisteredListeners);

        // Clear all data structures
        listenersLock.writeLock().lock();
        try {
            listenersForMonitor.clear();
            allRegisteredListeners.clear();
        } finally {
            listenersLock.writeLock().unlock();
        }
        activeProbesById.clear();
        listenersByProbe.clear();
        listenersByClass.clear();
        probesByKey.clear();
        probesByListener.clear();

        this.proxyActivator = null;
        this.transformer = null;
        this.componentContext = null;

        // Retransform the probed classes without our transformers in play
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(this, tc, "deactivate: probedClasses.size() = " + probedClasses.size());
        }
        for (Class<?> clazz : probedClasses) {
            instrumentation.retransformClasses(clazz);
        }
        this.instrumentation = null;
    }
1335115
public void dismiss() {
        mPopup.dismiss();
        removePromptView();
        mPopup.setContentView(null);
        mDropDownList = null;
        mHandler.removeCallbacks(mResizePopupRunnable);
    }
352534
public void dismiss() {
    if (isDismissing) {
      return;
    }

    outAnim.setAnimationListener(new Animation.AnimationListener() {
      @Override public void onAnimationStart(Animation animation) {

      }

      @Override public void onAnimationEnd(Animation animation) {
        decorView.post(new Runnable() {
          @Override public void run() {
            decorView.removeView(rootView);
            isDismissing = false;
            if (onDismissListener != null) {
              onDismissListener.onDismiss(DialogPlus.this);
            }
          }
        });
      }

      @Override public void onAnimationRepeat(Animation animation) {

      }
    });
    contentContainer.startAnimation(outAnim);
    isDismissing = true;
  }
17333
function removeIntentFiltersFromActivity(activity) {
  var oldIntentFilters = activity['intent-filter'];
  var newIntentFilters = [];

  if (oldIntentFilters == null || oldIntentFilters.length == 0) {
    return;
  }

  oldIntentFilters.forEach(function(intentFilter) {
    if (!isIntentFilterForUniversalLinks(intentFilter)) {
      newIntentFilters.push(intentFilter);
    }
  });

  activity['intent-filter'] = newIntentFilters;
}
1003476
function remove() {
    primus.removeListener('error', remove)
          .removeListener('open', remove)
          .removeListener('end', remove)
          .timers.clear('connect');
  }
746513
public ActivityMonitor getActivityMonitor(){
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "getActivityMonitor()");
		}
		
		return activityUtils.getActivityMonitor();
	}
272766
function() {
      var t = this;

      // Detach any prior monitor
      if (t.monitor) {
        t.monitor.off('change', t.onMonitorChange, t);
        delete t.monitor;
      }
    }
1337411
public void unregisterExceptionMonitor( ExceptionMonitor monitor )
    {
        synchronized( this )
        {
            if( monitor == null || !monitor.equals( m_exceptionMonitor ) )
            {
                return;
            }
            m_exceptionMonitor = null;
        }
    }
1065517
boolean removeObserver(ApptentiveNotificationObserver observer) {
		int index = indexOf(observer);
		if (index != -1) {
			observers.remove(index);
			return true;
		}
		return false;
	}
1084790
@Override
    public void removeNotificationHandler(String serviceName, NotificationHandler handler) throws ServiceException {

        ServiceInstanceUtils.validateManagerIsStarted(isStarted.get());
        ServiceInstanceUtils.validateServiceName(serviceName);
        if (handler == null) {
            throw new ServiceException(ErrorCode.SERVICE_DIRECTORY_NULL_ARGUMENT_ERROR,
                    ErrorCode.SERVICE_DIRECTORY_NULL_ARGUMENT_ERROR.getMessageTemplate(),
                    "NotificationHandler");
        }
        
        getLookupService().removeNotificationHandler(serviceName, handler);
    }
199362
function() {

		if (this._binds) {

			for (var i = 0, count = this._binds.length; i < count; i++) {
				this._binds[i].removeListener(this._bind_changed_listeners[i]);
			}

			this._binds = this._bind_changed_listeners = null;

		}

		this._argument.removeListener(this._argument_changed_listener);
		this._observable_listener && this._flushObservable();

		if (this._own_collection) {

			this._value.destroy();

		}

		this.suspendRefreshable();

	}
43658
@Override
  public void close() throws IOException {
    RootMetricContext.get().removeNotificationTarget(this.notificationTargetUUID);
    RootMetricContext.get().removeReporter(this);
  }
248429
void unregister(ResourceMonitorImpl monitorImpl)
   {
      Set<Entry<WatchKey, ResourceMonitorImpl>> entrySet = keys.entrySet();
      Iterator<Entry<WatchKey, ResourceMonitorImpl>> iterator = entrySet.iterator();
      while (iterator.hasNext())
      {
         Entry<WatchKey, ResourceMonitorImpl> next = iterator.next();
         if (next.getValue() == monitorImpl)
         {
            next.getKey().cancel();
            iterator.remove();
         }
      }
   }
1111778
public synchronized void stop() {
    Preconditions.checkState(notifListener != null, "logger has not been started");
    for (GarbageCollectorMXBean mbean : ManagementFactory.getGarbageCollectorMXBeans()) {
      if (mbean instanceof NotificationEmitter) {
        final NotificationEmitter emitter = (NotificationEmitter) mbean;
        try {
          emitter.removeNotificationListener(notifListener);
        } catch (ListenerNotFoundException e) {
          LOGGER.warn("could not remove gc listener", e);
        }
      }
    }
    notifListener = null;
  }
897787
public void removeTangoPeriodicListener(ITangoPeriodicListener listener) 
                throws DevFailed
    {
        event_listeners.remove(ITangoPeriodicListener.class,listener);
        if ( event_listeners.size() == 0 )
           unsubscribe_event(event_identifier);

    }