From 2c02250243db71d8b07920ffc6bfe8a7b88ae4af Mon Sep 17 00:00:00 2001 From: Chad Miller Date: Mon, 05 Jan 2026 21:29:08 +0000 Subject: [PATCH] chore: remove unused buildBlocksBytes method 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/pds.js | 19 ------------------- 1 file(s) changed, 0 insertion(s)(+), 19 deletion(s)(-) diff --git a/src/pds.js b/src/pds.js --- a/src/pds.js +++ b/src/pds.js @@ -982,25 +982,6 @@ return blocks } - // Build CAR-style block bytes (without header, just block entries) - buildBlocksBytes(blocks) { - const parts = [] - for (const block of blocks) { - const cidBytes = block.cid instanceof Uint8Array ? block.cid : cidToBytes(block.cid) - const blockLen = cidBytes.length + block.data.length - // Varint encode the length - let len = blockLen - while (len >= 0x80) { - parts.push((len & 0x7f) | 0x80) - len >>= 7 - } - parts.push(len) - parts.push(...cidBytes) - parts.push(...block.data) - } - return new Uint8Array(parts) - } - async createRecord(collection, record, rkey = null) { const did = await this.getDid() if (!did) throw new Error('PDS not initialized') -- tangled.sh