From 51abf7d15b1da5b74d58a381ced662dc0f70b4b0 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Wed, 28 Jan 2026 15:04:08 -0500 Subject: [PATCH] script: remove unused SCRIPT_ERR_LAST It was introduced in ab9edbd6b6eb3efbca11f16fa467c3c0ef905708 and never used since. It seems it might have been intended to be exposed as part of a public library interface, which has since been superseded. The only call site uses SCRIPT_ERR_ERROR_COUNT directly. --- src/script/script_error.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/script/script_error.h b/src/script/script_error.h index 58ac7db5393..7aec1020104 100644 --- a/src/script/script_error.h +++ b/src/script/script_error.h @@ -86,8 +86,6 @@ typedef enum ScriptError_t SCRIPT_ERR_ERROR_COUNT } ScriptError; -#define SCRIPT_ERR_LAST SCRIPT_ERR_ERROR_COUNT - std::string ScriptErrorString(ScriptError error); #endif // BITCOIN_SCRIPT_SCRIPT_ERROR_H