remove unnecessary isRoot()

This commit is contained in:
Andre Staltz 2023-10-19 17:52:57 +03:00
parent 0937f3e8c6
commit 3385901b2d
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
2 changed files with 0 additions and 15 deletions

View File

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

View File

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