From 3385901b2dcf63897a9ea9fac99fea641bfec32c Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Thu, 19 Oct 2023 17:52:57 +0300 Subject: [PATCH] remove unnecessary isRoot() --- lib/index.js | 10 ---------- test/index.test.js | 5 ----- 2 files changed, 15 deletions(-) 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)