Revert change f860b7a775c5

Revert change "Issue #27213: Reintroduce checks in _PyStack_AsDict()", pushed
by mistake.
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index 487ccd7..90c473e 100644
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -279,7 +279,7 @@
 
     nkwargs = (kwnames == NULL) ? 0 : PyTuple_GET_SIZE(kwnames);
     if (nkwargs > 0) {
-        kwdict = _PyStack_AsDict(stack + nargs, nkwargs, kwnames, func);
+        kwdict = _PyStack_AsDict(stack + nargs, kwnames);
         if (kwdict == NULL) {
             return NULL;
         }