MCPcopy Index your code
hub / github.com/codeaashu/claude-code / delete

Method delete

src/server/web/public/terminal.js:3591–3601  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

3589 0 !== this._array.length ? (i2 = this._search(this._getKey(e3)), this._array.splice(i2, 0, e3)) : this._array.push(e3);
3590 }
3591 delete(e3) {
3592 if (0 === this._array.length) return false;
3593 const t3 = this._getKey(e3);
3594 if (void 0 === t3) return false;
3595 if (i2 = this._search(t3), -1 === i2) return false;
3596 if (this._getKey(this._array[i2]) !== t3) return false;
3597 do {
3598 if (this._array[i2] === e3) return this._array.splice(i2, 1), true;
3599 } while (++i2 < this._array.length && this._getKey(this._array[i2]) === t3);
3600 return false;
3601 }
3602 *getKeyIterator(e3) {
3603 if (0 !== this._array.length && (i2 = this._search(e3), !(i2 < 0 || i2 >= this._array.length) && this._getKey(this._array[i2]) === e3)) do {
3604 yield this._array[i2];

Callers

nothing calls this directly

Calls 2

_searchMethod · 0.80
spliceMethod · 0.80

Tested by

no test coverage detected