script: remove unused SCRIPT_ERR_LAST

It was introduced in ab9edbd6b6 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.
This commit is contained in:
Antoine Poinsot
2026-01-28 15:04:08 -05:00
parent cd1af852fa
commit 51abf7d15b

View File

@@ -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