From 6cca38e2b92967b3c057407319e39c6aebadd032 Mon Sep 17 00:00:00 2001 From: kevkevinpal Date: Wed, 22 Apr 2026 16:37:09 -0400 Subject: [PATCH] refactor: remove unused PSBTError::Ok --- src/common/messages.cpp | 2 -- src/common/types.h | 1 - 2 files changed, 3 deletions(-) diff --git a/src/common/messages.cpp b/src/common/messages.cpp index 700f4f03cd6..7d94b68f293 100644 --- a/src/common/messages.cpp +++ b/src/common/messages.cpp @@ -118,8 +118,6 @@ bilingual_str PSBTErrorString(PSBTError err) return Untranslated("Input needs additional signatures or other data"); case PSBTError::INVALID_TX: return Untranslated("The transaction cannot be valid"); - case PSBTError::OK: - return Untranslated("No errors"); } // no default case, so the compiler can warn about missing cases assert(false); } diff --git a/src/common/types.h b/src/common/types.h index b9ebca15e84..1ffcd392d60 100644 --- a/src/common/types.h +++ b/src/common/types.h @@ -24,7 +24,6 @@ enum class PSBTError { UNSUPPORTED, INCOMPLETE, INVALID_TX, - OK, }; /** * Instructions for how a PSBT should be signed or filled with information.