From: uz Date: Mon, 7 Sep 2009 14:21:19 +0000 (+0000) Subject: Remove stack pointer check in RemoveCodeRange - the calling function has to X-Git-Tag: V2.13.0rc1~128 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b2d30c3283056496bb509bf9016e236c234b03ce;p=cc65 Remove stack pointer check in RemoveCodeRange - the calling function has to take care about that. git-svn-id: svn://svn.cc65.org/cc65/trunk@4128 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/asmcode.c b/src/cc65/asmcode.c index e5fff9af0..83ea3b252 100644 --- a/src/cc65/asmcode.c +++ b/src/cc65/asmcode.c @@ -70,11 +70,6 @@ void RemoveCodeRange (const CodeMark* Start, const CodeMark* End) return; } - /* We can only delete the range if End is the end of the code segment or - * if both SP values are identical. - */ - CHECK (Start->SP == End->SP || End->Pos == CS_GetEntryCount (CS->Code)); - /* Delete the range */ CS_DelCodeRange (CS->Code, Start->Pos, End->Pos-1); }