Removes a listener from the publisher object.

@param MW_Observer_Listener_Interface $l Object implementing listener interface
@param string $action Name of the action to remove the listener from
326776
public function removeListener( MW_Observer_Listener_Interface $l, $action )
	{
		if( isset( $this->_listeners[$action] ) )
		{
			foreach( $this->_listeners[$action] as $key => $listener )
			{
				if( $listener === $l ) {
					unset( $this->_listeners[$action][$key] );
				}
			}
		}
	}
1061761
def remove(action)
      raise ArgumentError.new('Expecting an action') unless action.is_a?(Action)
      @actions.delete(action)
      wakeup if running?
    end
838529
public function removeListener($listener, $event = null): bool
    {
        if ($event) {
            if ($event instanceof EventInterface) {
                $event = $event->getName();
            }

            // 存在对这个事件的监听队列
            if (isset($this->listeners[$event])) {
                $this->listeners[$event]->remove($listener);
            }
        } else {
            foreach ($this->listeners as $queue) {
                /**  @var $queue ListenerQueue */
                $queue->remove($listener);
            }
        }

        return true;
    }
999243
public final void removeEventHandler(EventHandler<CalendarEvent> l) {
        if (l != null) {
            if (MODEL.isLoggable(FINER)) {
                MODEL.finer(getName() + ": removing event handler: " + l); //$NON-NLS-1$
            }
            eventHandlers.remove(l);
        }
    }
1366438
protected final void fireChildrenRemoved(BeanContextMembershipEvent event)
	{
		Object listeners[];
		synchronized (bcmListeners)
		{
			listeners = bcmListeners.toArray();
		}
		for (int i = 0; i < listeners.length; i++)
		{
			BeanContextMembershipListener l = (BeanContextMembershipListener) listeners[i];
			l.childrenRemoved(event);
		}
	}
1024696
def deregister_listener(self, member_uuid, listener):
        
        self._casts[str(member_uuid)]['listeners'].remove(listener)
164221
synchronized public void removeClusterChangeListener(ClusterEventListener l) {
    if (listeners == null)
      listeners = new Vector();
    listeners.removeElement(l);
  }
764355
public function register( MW_Observer_Publisher_Interface $p )
	{
		$p->addListener( $this, 'setAddress.after' );
		$p->addListener( $this, 'deleteAddress.after' );
		$p->addListener( $this, 'addProduct.after' );
		$p->addListener( $this, 'deleteProduct.after' );
		$p->addListener( $this, 'addCoupon.after' );
		$p->addListener( $this, 'deleteCoupon.after' );
	}
972387
public function detach(ObserverInterface $observer): void
    {
        $key = spl_object_hash($observer);

        unset($this->observers[$key]);
    }
583050
public void removeListener(BaseListener theBehavior, boolean bFreeBehavior)
    {
        if (m_listener != null)
        {
            if (m_listener == theBehavior)
            {
                m_listener = (FileListener)theBehavior.getNextListener();
                theBehavior.unlink(bFreeBehavior);      // remove theBehavior from the linked list
            }
            else
                m_listener.removeListener(theBehavior, bFreeBehavior);
        }
    }
1112488
public void removeMembershipEventListener(MembershipEventListener listener)
   {
      SecurityHelper.validateSecurityPermission(PermissionConstants.MANAGE_LISTENERS);
      listeners.remove(listener);
   }
378377
protected function excluded($action, $plugin)
    {
        $this->io->write('<warning>The plugin ' . $plugin . ' was not ' . $this->getActionPast($action) . ' because it is known to cause issues.</warning>');
        $this->io->write('<info>You can still activate this plugin manually.</info>');
        $this->io->write('');
    }
1344775
def remove_observer(self, observer):
        
        super(PowerManagement, self).remove_observer(observer)
        if len(self._weak_observers) == 0:
            if not self._cf_run_loop:
                PowerManagement.notifications_observer.removeObserver(self)
            else:
                CFRunLoopSourceInvalidate(self._source)
                self._source = None
506755
public function deletePermission(string $action): void
    {
        /** @var HCAclPermission $permission */
        $permission = $this->findOneBy(['action' => $action]);

        $permission->roles()->detach();

        $permission->forceDelete();
    }
447739
public void removeConnectionListener(KNXListener l)
	{
		synchronized (listeners) {
			if (listeners.remove(l))
				listenersCopy = new ArrayList(listeners);
		}
	}
584053
public void removeListener(final ParticipantsListener participantsListener) {
        MessagingListener messagingListener = participantsListeners.get(participantsListener);
        if (messagingListener != null) {
            client.removeListener(messagingListener);
            participantsListeners.remove(participantsListener);
        }
    }
610760
public void removeListener(LifecycleListener listener)
  {
    synchronized (this) {
      if (_listeners == null)
        return;

      for (int i = _listeners.size() - 1; i >= 0; i--) {
        LifecycleListener oldListener = _listeners.get(i).get();

        if (listener == oldListener) {
          _listeners.remove(i);

          return;
        }
        else if (oldListener == null)
          _listeners.remove(i);
      }
    }
  }