diff --git a/src/document/change/context.ts b/src/document/change/context.ts index 54775b895..d097006d4 100644 --- a/src/document/change/context.ts +++ b/src/document/change/context.ts @@ -22,7 +22,6 @@ import { CRDTRoot } from '@yorkie-js-sdk/src/document/crdt/root'; import { CRDTContainer, CRDTElement, - CRDTGCElement, } from '@yorkie-js-sdk/src/document/crdt/element'; import { Operation } from '@yorkie-js-sdk/src/document/operation/operation'; import { ChangeID } from '@yorkie-js-sdk/src/document/change/change_id'; @@ -103,14 +102,6 @@ export class ChangeContext
{
this.root.registerRemovedElement(deleted);
}
- /**
- * `registerElementHasRemovedNodes` register GC element has removed node for
- * garbage collection.
- */
- public registerElementHasRemovedNodes(elem: CRDTGCElement): void {
- this.root.registerElementHasRemovedNodes(elem);
- }
-
/**
* `registerGCPair` registers the given pair to hash table.
*/
diff --git a/src/document/crdt/element.ts b/src/document/crdt/element.ts
index 463bfb732..d9dd6a6b4 100644
--- a/src/document/crdt/element.ts
+++ b/src/document/crdt/element.ts
@@ -157,11 +157,3 @@ export abstract class CRDTContainer extends CRDTElement {
*/
abstract getByID(createdAt: TimeTicket): CRDTElement | undefined;
}
-
-/**
- * `CRDTGCElement` represents element which has garbage collecting method.
- */
-export abstract class CRDTGCElement extends CRDTElement {
- abstract getRemovedNodesLen(): number;
- abstract purgeRemovedNodesBefore(ticket: TimeTicket): number;
-}
diff --git a/src/document/crdt/rga_tree_split.ts b/src/document/crdt/rga_tree_split.ts
index 7ce6e1a8f..1a0014169 100644
--- a/src/document/crdt/rga_tree_split.ts
+++ b/src/document/crdt/rga_tree_split.ts
@@ -25,6 +25,7 @@ import {
TimeTicket,
TimeTicketStruct,
} from '@yorkie-js-sdk/src/document/time/ticket';
+import { GCChild, GCPair, GCParent } from '@yorkie-js-sdk/src/document/crdt/gc';
export interface ValueChange