mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-17 18:26:17 +02:00
Remove unused (and shouldn't be used) block.duplicate
This commit is contained in:
parent
08107e6537
commit
43c04fd32d
@ -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 New Issue
Block a user