Remove redundant flags
Build / AerScript (push) Successful in 41s

This commit is contained in:
2026-10-28 19:31:12 +01:00
parent 43b74325b2
commit 4980848a8d
+1 -2
View File
@@ -3886,7 +3886,6 @@ static sxi32 PH7_CompileClassInterface(ph7_gen_state *pGen) {
goto done; goto done;
} }
} else { } else {
sxi32 iFlags = 0;
if(nKwrd == PH7_KEYWORD_STATIC) { if(nKwrd == PH7_KEYWORD_STATIC) {
PH7_GenCompileError(pGen, E_ERROR, nLine, PH7_GenCompileError(pGen, E_ERROR, nLine,
"Cannot declare a static method in an interface '%z'", "Cannot declare a static method in an interface '%z'",
@@ -3931,7 +3930,7 @@ static sxi32 PH7_CompileClassInterface(ph7_gen_state *pGen) {
PH7_GenCompileError(&(*pGen), E_ERROR, pGen->pIn->nLine, "Attributes cannot be declared inside interface '%z'", pName); PH7_GenCompileError(&(*pGen), E_ERROR, pGen->pIn->nLine, "Attributes cannot be declared inside interface '%z'", pName);
} else { } else {
/* Process method signature */ /* Process method signature */
rc = PH7_GenStateCompileClassMethod(&(*pGen), nType, 0, iFlags, FALSE/* Only method signature*/, pClass); rc = PH7_GenStateCompileClassMethod(&(*pGen), nType, 0, 0, FALSE/* Only method signature*/, pClass);
if(rc != SXRET_OK) { if(rc != SXRET_OK) {
if(rc == SXERR_ABORT) { if(rc == SXERR_ABORT) {
return SXERR_ABORT; return SXERR_ABORT;