From 43c04fd32d3c2a170ad60666d718ecf48f30aeda Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Wed, 3 Mar 2021 10:47:23 -0800 Subject: [PATCH] Remove unused (and shouldn't be used) block.duplicate --- webapp/src/blocks/block.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/webapp/src/blocks/block.ts b/webapp/src/blocks/block.ts index a9e165b6d..17a83ae2e 100644 --- a/webapp/src/blocks/block.ts +++ b/webapp/src/blocks/block.ts @@ -49,18 +49,6 @@ class MutableBlock implements IMutableBlock { updateAt = 0 deleteAt = 0 - static duplicate(block: IBlock): IMutableBlock { - const now = Date.now() - - const newBlock = new MutableBlock(block) - newBlock.id = Utils.createGuid() - newBlock.createAt = now - newBlock.updateAt = now - newBlock.deleteAt = 0 - - return newBlock - } - constructor(block: any = {}) { this.id = block.id || Utils.createGuid() this.schema = 1