Remove unused (and shouldn't be used) block.duplicate
This commit is contained in:
parent
08107e6537
commit
43c04fd32d
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue