MCPcopy
hub / github.com/webpack/webpack / delete

Method delete

lib/util/runtime.js:588–603  ·  view source on GitHub ↗

* Processes the provided runtime. * @param {RuntimeSpec} runtime the runtimes

(runtime)

Source from the content-addressed store, hash-verified

586 * @param {RuntimeSpec} runtime the runtimes
587 */
588 delete(runtime) {
589 switch (this._mode) {
590 case 0:
591 return;
592 case 1:
593 if (runtimeEqual(this._singleRuntime, runtime)) {
594 this._mode = 0;
595 this._singleRuntime = undefined;
596 this._singleValue = undefined;
597 }
598 return;
599 default:
600 /** @type {RuntimeSpecMapInnerMap<R>} */
601 (this._map).delete(getRuntimeKey(runtime));
602 }
603 }
604
605 /**
606 * Processes the provided runtime.

Callers

nothing calls this directly

Calls 2

runtimeEqualFunction · 0.85
getRuntimeKeyFunction · 0.85

Tested by

no test coverage detected