Remove the last action.
3388
public void removeLast() {
		if (this.numTypesProperty.get()>0) {
			switch(this.types[this.numTypesProperty.get()-1]) {
			case CLOSE:
				// no coord to remove
				break;
			case MOVE_TO:
			case LINE_TO:
				this.numCoordsProperty.set(this.numCoordsProperty.get()-3);
				break;
			case CURVE_TO:
				this.numCoordsProperty.set(this.numCoordsProperty.get()-9);
				this.isPolylineProperty = null;
				break;
			case QUAD_TO:
				this.numCoordsProperty.set(this.numCoordsProperty.get()-6);
				this.isPolylineProperty = null;
				break;
			default:
				throw new IllegalStateException();
			}
			this.numTypesProperty.set(this.numTypesProperty.get()-1);
			this.isEmptyProperty = null;
			this.graphicalBounds = null;
			this.logicalBounds = null;
		}
	}
242292
def clean_up(self):
        """"""
        self.action_buffer = []
        self.sources = {}
        self.doc_to_get = {}
        self.doc_to_update = []
1042678
public function cleanupAction()
    {
        $params = $this->_processParameters($this->showParameters);
        $params['contentTitle'] = $this->_('Clean up existing appointments?');
        $params['filterOn']     = 'gap_id_procedure';
        $params['filterWhen']   = 'gap_filter';

        $snippets = array(
            'Generic\\ContentTitleSnippet',
            'Agenda\\AppointmentCleanupSnippet',
            'Agenda_CalendarTableSnippet',
            );

        $this->addSnippets($snippets, $params);
    }
977157
public function destroy()
    {
        $this->manialink = null;
        $this->manialinkFactory = null;
        $this->dataCollection = null;

        // There is cyclic dependency between actions and model, remove it so that memory can be freed immediately.
        $this->actionFirstPage = null;
        $this->actionGotoPage = null;
        $this->actionLastPage = null;
        $this->actionNextPage = null;
        $this->temporaryActions = [];
        $this->temporaryEntries = [];
    }
583978
function trimActions(actions) {
  // TODO: maybe, instead of doing this, add a last screenshot here. It's
  // mostly due to mistakes
  var lastScreenshotIndex = _.findLastIndex(actions, function(a) {
    return a.action === consts.STEP_SCREENSHOT;
  });
  return actions.slice(0, lastScreenshotIndex + 1);
}
389790
function removeActive() {
      for (var i = 0; i < this._n.length; i++) {
        this.removeClass(this._n[i].children);
      }
    }
1307197
protected void discard()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "discard");

    // Discard any old cursor
    if(getCursor != null)
    {
      getCursor.finished();
      getCursor = null;
    }
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "discard");
  }
1026953
def clear(self):
        
        # clear the actions from this widget
        for act in self.actions():
            act.setParent(None)
            act.deleteLater()
        
        # clear the labels from this widget
        for lbl in self.actionLabels():
            lbl.close()
            lbl.deleteLater()
120467
public function remove()
    {
        //if user selected not to update modules, skipping all updates
        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("noButton")) {
            \OxidEsales\Eshop\Core\Registry::getSession()->setVariable("blSkipDeletedExtChecking", true);

            return;
        }

        $oModuleList = oxNew(\OxidEsales\Eshop\Core\Module\ModuleList::class);
        $oModuleList->cleanup();
    }
665718
def remove_menu(self, menu):
        
        self._menus.remove(menu)
        for action in menu.actions():
            self.removeAction(action)
150711
public function updateLastAction ()
	{
		
		$arr	= $this->getSessionData ();
		
		$this->lastAction		= time ();
		$arr['last_action']		= $this->lastAction;
		
		$this->session ()->set (get_called_class (), serialize ($arr));
		
	}
1156500
def yank_last_arg(event):
    
    n = (event.arg if event.arg_present else None)
    event.current_buffer.yank_last_arg(n)
690695
def remove_last_line(self):
        """"""
        editor = self._editor
        text_cursor = editor.textCursor()
        text_cursor.movePosition(text_cursor.End, text_cursor.MoveAnchor)
        text_cursor.select(text_cursor.LineUnderCursor)
        text_cursor.removeSelectedText()
        text_cursor.deletePreviousChar()
        editor.setTextCursor(text_cursor)
515242
def process_remove_action(processors, action, argument):
    """"""
    for processor in processors:
        processor(action, argument)
    db.session.commit()
628673
public Command undoLast() {
        Command lastCommand = undoStack.pop();
        redoStack.push(lastCommand);
        lastCommand.undo();
        return lastCommand;
    }
1312257
public static void removeLastOverlay() {

        if (!m_overlays.isEmpty()) {
            CmsInlineEditOverlay last = m_overlays.remove(m_overlays.size() - 1);
            last.removeFromParent();
        }
        if (!m_overlays.isEmpty()) {
            m_overlays.get(m_overlays.size() - 1).setVisible(true);
        }
    }
442036
protected void eliminate()
    {
        int count = end-begin;
        int mod = Math.floorMod(begin, size);
        while (count > 0 && isRemovable(mod))
        {
            remove(mod);
            begin++;
            count--;
            mod = Math.floorMod(begin, size);
        }
    }