845caf3108e6

chore: Remove unused BrowserSlotJson instance (v2.9.8)

GPT-5.6-Sol NIT from the v2.9.7 review: BrowserSlotJson was a private val in VaultRepository.kt:30 used only by androidDuressSlotToBrowserJson. The v2.9.7 fix rewrote that function to build the wire JSON via JsonObject directly, leaving BrowserSlotJson dead code. Ponytail: delete dead code. Changes: - vault/VaultRepository.kt: delete BrowserSlotJson instance + its stale comment.

time
2026-07-30 16:32 UTC · 2 months ago
machine
koh2
parent
ab8531a9baeb
1 file app/src/main/java/com/peachpasswords/vault/VaultRepository.kt+0 −3
app/src/main/java/com/peachpasswords/vault/VaultRepository.kt+0 −3
@@ -26,9 +26,6 @@2626 /** Lenient parser for the Codex vault-blob wrapper only. */2727 private val CodexJson = Json { ignoreUnknownKeys = true; isLenient = true }2828 29-/** Omits null optional fields — used for browser-shaped duress slot export. */30-private val BrowserSlotJson = Json { encodeDefaults = false }31-3229 private fun b64(bytes: ByteArray): String = Base64.getEncoder().withoutPadding().encodeToString(bytes)3330 private fun unb64(s: String): ByteArray = Base64.getDecoder().decode(s)3431 

view file