mirror of https://codeberg.org/pzp/pzp-dict.git
remove unnecessary isRoot()
This commit is contained in:
parent
0937f3e8c6
commit
3385901b2d
10
lib/index.js
10
lib/index.js
|
@ -417,15 +417,6 @@ function initRecord(peer, config) {
|
|||
return MsgV3.getMootID(accountID, domain)
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @param {Msg} msg
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function isRoot(msg) {
|
||||
return isValidRecordMoot(msg)
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @param {MsgID} ghostableMsgID
|
||||
|
@ -530,7 +521,6 @@ function initRecord(peer, config) {
|
|||
update,
|
||||
read,
|
||||
getFeedID,
|
||||
isRoot,
|
||||
isGhostable,
|
||||
getFieldRoots,
|
||||
getMinRequiredDepth,
|
||||
|
|
|
@ -134,11 +134,6 @@ test('Record squeeze', async (t) => {
|
|||
assert.deepEqual(fieldRoots6, fieldRoots5, 'fieldRoots')
|
||||
})
|
||||
|
||||
test('Record isRoot', (t) => {
|
||||
const moot = MsgV3.createMoot(aliceID, 'record_v1__profile', aliceKeypair)
|
||||
assert.ok(peer.record.isRoot(moot), 'isRoot')
|
||||
})
|
||||
|
||||
test('Record isGhostable', (t) => {
|
||||
const moot = MsgV3.createMoot(aliceID, 'record_v1__profile', aliceKeypair)
|
||||
const mootID = MsgV3.getMsgID(moot)
|
||||
|
|
Loading…
Reference in New Issue