diff --git a/lib/index.js b/lib/index.js index f062a4e..6a9e21c 100644 --- a/lib/index.js +++ b/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, diff --git a/test/index.test.js b/test/index.test.js index c396cdc..8662da3 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -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)