Handle the case where we deleted from a left fringe.
972115
private void leftFringe(
    DeleteStack.Linearizer       lxx,
    DeleteStack.FringeNote      xx,
    InsertStack   istack,
    GBSNode       f,
    GBSNode       g,
    boolean       gLeft,
    int           t0_depth)
  {

    GBSNode w = f.rightChild();    /* The right brother of delete fringe    */
    GBSNode s = f.leftChild();     /* t0 fringe from which we deleted       */
    GBSNode bfather = g;
    GBSNode sh = null;             /* The linearized s                      */
    GBSNode p = null;
    int fbalance = f.balance();
    f.clearBalance();
    if (w == null)                 /* There is no right brother             */
      {
        sh = linearize(lxx, s);
        f.setRightChild(null);
        combine(lastInList(sh), f);/* [s, f]                                */
        p = sh;
        xx.depthDecrease = true;
      }
    else                           /* There is a right brother              */
      {
        p = linearize(lxx, s);
        f.setChildren(null, null);
        combine(lastInList(p), f); /* [s, f]                                */
        sh = p;                    /* Assume linear list or single t0       */
        GBSNode wh = w.leftMostChild(istack);
        int zpoints = istack.index();
        if (zpoints > 0)           /* Is a t0 fringe (possibly more         */
          {                        /*  than one level down)                 */
            zpoints--;
            int ztop = 0;          /* Assume top of entire tree             */
            if (zpoints >= t0_depth)/* Have more than a whole t0 fringe     */
              {
                ztop = zpoints - t0_depth + 1;
                sh = w;            /* We will elevate w                     */
                bfather = istack.node(ztop-1);
                bfather.setLeftChild(p);/* Father of left-most fringe       */
                                   /*        points to linear list          */
              }
                                   /* Linearize left-most fringe            */
          wh = linearize(lxx, istack.node(ztop));
          }
        combine(lastInList(p), wh);/* Add w onto f  (now [s, f, w])         */
        leftDepth(xx, fbalance);   /* Check for depth change                */
      }
    if (gLeft) {
      g.setLeftChild(sh);
    }
    else {
      g.setRightChild(sh);
    }
    boolean bLeft = true;
    if (bfather.rightChild() == p) {
      bLeft = false;
    }
    int maxBal = g.kFactor() - 1;
    if (maxBal < 3) {
      maxBal = 3;
    }
    istack.start(bfather, "GBSDeleteFringe.leftFringe");
    istack.setNode(1, null);
    istack.resetBalancePointIndex();
    int fpidx = 1;
    if (g.kFactor() > 2) {
      GBSInsertFringe.singleInstance().balance(
                      g.kFactor(), istack, p, fpidx, maxBal);
    }
    xx.newg = bfather;
    if (bLeft) {
      xx.newf = bfather.leftChild();
    }
    else {
      xx.newf = bfather.rightChild();
    }
  }
178232
def remove(self, other):
        """"""
        if other is FullSpace:
            return TrivialSpace
        if other is TrivialSpace:
            return self
        if isinstance(other, ProductSpace):
            oops = set(other.operands)
        else:
            oops = {other}
        return ProductSpace.create(
                *sorted(set(self.operands).difference(oops)))
402609
public void handleLostConnection() {
        try {
            clientEngine.applySelector(ClientSelectors.any());
        } catch (Exception e) {
            LOGGER.warning("Could not clean up client B/W list filtering.", e);
        }
    }
627066
def deleted(message):
    """"""

    def deleted(value, _context, **_params):
        return Deleted(value, message)

    return deleted
1208559
public function afterDelete()
    {
        $owner = $this->owner;
        $condition = $this->getCondition();
        $condition[] = ['>', $this->sortAttribute, $owner->{$this->sortAttribute}];
        $owner->updateAllCounters([$this->sortAttribute => -1], $condition);
    }
1227001
def on_trial_remove(self, trial_runner, trial):
        """"""
        bracket, _ = self._trial_info[trial]
        bracket.cleanup_trial(trial)
        if not bracket.finished():
            self._process_bracket(trial_runner, bracket, trial)
79186
protected function handleMediableDeletion()
    {
        // only cascade soft deletes when configured
        if (static::hasGlobalScope(SoftDeletingScope::class) && ! $this->forceDeleting) {
            if (config('mediable.detach_on_soft_delete')) {
                $this->media()->detach();
            }
            // always cascade for hard deletes
        } else {
            $this->media()->detach();
        }
    }
513697
async function validateDeleted (args) {
    try {
        var deletedTable = await this.mysql().query(
            sql.showCreateTable({name: `${this.name}Delete`}), {}, {}, args.session
        )
    }
    // exception will be thrown if table does not exist
    catch (err) {
        return
    }
    // get deleted records
    const [ results ] = await this.mysql().query(sql.selectDeleted(this))
    debug(`checking ${results.length} deleted records`)
    // check each record and delete if needed
    for (const result of results) {
        // load current record
        var record = await this.query({
            allow: true,
            cache: false,
            current: true,
            one: true,
            session: args.session,
            where: { id: result.id }
        })
        // skip if record not found
        if (!defined(record)) {
            continue
        }
        // skip if id does not match
        if (record.id !== result.id) {
            continue
        }
        // skip if record already deleted
        if (record.isDeleted) {
            continue
        }
        debug(`deleting ${record.id}`)
        // delete record
        await record.delete({allow: true, cache: false})
    }
}
598541
def dispatch(self, *args, **kwargs):
        """"""
        return super(StrainDelete, self).dispatch(*args, **kwargs)
32115
function handleExit (canCancel, signal, code) {
	var i = 0,
		sub;

	while ((sub = subs[i++])) {
		if (sub[0].call(sub[1], canCancel, signal, code) === false && canCancel) {
			return;
		}
	}

	if (canCancel) {
		process.exit(code);
	}
}
173180
function _handleRemoveFromPaneView(e, removedFiles) {
        var handleFileRemoved = function (file) {
            var doc = DocumentManager.getOpenDocumentForPath(file.fullPath);

            if (doc) {
                MainViewManager._destroyEditorIfNotNeeded(doc);
            }
        };

        // when files are removed from a pane then
        //    we should destroy any unnecssary views
        if ($.isArray(removedFiles)) {
            removedFiles.forEach(function (removedFile) {
                handleFileRemoved(removedFile);
            });
        } else {
            handleFileRemoved(removedFiles);
        }
    }
1080166
function onRemove( error ) {
		if ( error ) {
			debug( 'Error encountered while attempting to delete a temporary input file %s: %s', inFile, error.message );
			return done( error );
		}
		debug( 'Successfully deleted temporary input file: %s', inFile );
		if ( dest === void 0 ) {
			debug( 'Reading temporary output file: %s', outFile );
			return readFile( outFile, {'encoding':'utf8'}, onFile );
		}
		done();
	}
34027
def reflect_left(self, value):
        """"""
        if value > self:
            value = self.reflect(value)
        return value
1170770
def ndeleted(self):
        """"""
        if not self._counters_calculated:
            self._counters_calculated = True
            self._extract_counters()

        return self._ndeleted
868641
def teardown(self):
        """"""
        for table_spec in reversed(self._table_specs):
            with self._conn:
                table_spec.teardown(self._conn)
35211
def handle_abort(e)
      if log.level == ::Logger::DEBUG
        raise e
      elsif e.class != SystemExit
        @log.error e.message.red
        @log.info 'cleaning up...'

        task_manager.invoke_task_oneshot(:cleanup_local)
      end
      
      Kernel.exit(true)
    end
753243
public function eventAfterDelete()
    {
        $this->updateNavItemTimesamp();
        if (!empty($this->_olds)) {
            $this->reindex($this->_olds['nav_item_page_id'], $this->_olds['placeholder_var'], $this->_olds['prev_id']);
        }
    }