Remove unused (and shouldn't be used) block.duplicate

This commit is contained in:
Chen-I Lim 2021-03-03 10:47:23 -08:00
parent 08107e6537
commit 43c04fd32d

View file

@ -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