From e4e2a0b9d7332b8fa1b93ef97eccd0bfdf21e5b2 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 30 Sep 2026 18:37:41 +0200 Subject: [PATCH] cultnet-ts: drop decodeRawDocumentPut, which only receipt admission used The registry method existed on this branch only to size a receipt at put admission in cultmesh-ts, which no longer does. It never reached main. Co-Authored-By: Claude Opus 5.5 --- packages/cultnet-ts/src/replication.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/cultnet-ts/src/replication.ts b/packages/cultnet-ts/src/replication.ts index 6de103b6..a2eda250 100644 --- a/packages/cultnet-ts/src/replication.ts +++ b/packages/cultnet-ts/src/replication.ts @@ -268,20 +268,6 @@ export class CultNetDocumentRegistry { }; } - /** - * The binding and value `applyRawDocumentPutMessage` would store for this raw - * put, decoded as that binding reads it. A server uses it to build the reply - * that would acknowledge the put before storing it. Throws, as the put would, - * when no binding accepts the document. - */ - decodeRawDocumentPut(message: CultNetDocumentPutRawMessage): { - binding: CultNetDocumentBinding; - value: unknown; - } { - const { binding, envelope } = this.#rawPutEnvelope(message); - return { binding, value: decodeDocumentValue(binding.definition, envelope.payload) }; - } - #rawPutEnvelope(message: CultNetDocumentPutRawMessage): { binding: CultNetDocumentBinding; envelope: CultCacheEnvelope;