aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2025-02-16 00:02:15 +0100
committerChristian Clason <ch.clason+github@icloud.com>2025-02-19 19:11:55 +0100
commit36f44b3121fcdcb6532d77389b59c4e1b7382ac4 (patch)
tree1a4e339df8fa56114b09b6271377cac6a9dd5f2d /src
parentbc1018a8d3eeeade9b3fad147a9d9a819985d69d (diff)
downloadrneovim-36f44b3121fcdcb6532d77389b59c4e1b7382ac4.tar.gz
rneovim-36f44b3121fcdcb6532d77389b59c4e1b7382ac4.tar.bz2
rneovim-36f44b3121fcdcb6532d77389b59c4e1b7382ac4.zip
fix(api): remove invalid assertions
Problem: `try_leave()` assertions moved in #31600 no longer hold. Solution: Remove the assertions.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/api/private/helpers.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c
index c98635f8fd..a1af26e56f 100644
--- a/src/nvim/api/private/helpers.c
+++ b/src/nvim/api/private/helpers.c
@@ -123,13 +123,6 @@ void try_leave(const TryState *const tstate, Error *const err)
discard_current_exception();
}
- assert(msg_list == &tstate->private_msg_list);
- assert(*msg_list == NULL);
- assert(current_exception == NULL);
- assert(!got_int);
- assert(!did_throw);
- assert(!need_rethrow);
- assert(!did_emsg);
// Restore the exception context.
msg_list = (msglist_T **)tstate->msg_list;
current_exception = tstate->current_exception;