diff --git a/src/Types.ts b/src/Types.ts index 8f0cf380b..dd1b22cad 100644 --- a/src/Types.ts +++ b/src/Types.ts @@ -275,7 +275,6 @@ export interface IBufferSet extends IEventEmitter { export interface ICircularList extends IEventEmitter { length: number; maxLength: number; - forEach: (callbackfn: (value: T, index: number) => void) => void; get(index: number): T; set(index: number, value: T): void; diff --git a/src/utils/CircularList.ts b/src/utils/CircularList.ts index 7fc5dcbfd..1f00ea09b 100644 --- a/src/utils/CircularList.ts +++ b/src/utils/CircularList.ts @@ -58,15 +58,6 @@ export class CircularList extends EventEmitter implements ICircularList { this._length = newLength; } - public get forEach(): (callbackfn: (value: T, index: number) => void) => void { - return (callbackfn: (value: T, index: number) => void) => { - let length = this.length; - for (let i = 0; i < length; i++) { - callbackfn(this.get(i), i); - } - }; - } - /** * Gets the value at an index. *