MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / removeSeries

Function removeSeries

src/data/createDataStore.ts:282–294  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

280 };
281
282 const removeSeries = (index: number): void => {
283 assertNotDisposed();
284
285 const entry = series.get(index);
286 if (!entry) return;
287
288 try {
289 entry.buffer.destroy();
290 } catch {
291 // Ignore destroy errors; removal should be best-effort.
292 }
293 series.delete(index);
294 };
295
296 const getSeriesBuffer = (index: number): GPUBuffer => {
297 return getSeriesEntry(index).buffer;

Callers

nothing calls this directly

Calls 2

assertNotDisposedFunction · 0.70
destroyMethod · 0.45

Tested by

no test coverage detected