aboutsummaryrefslogtreecommitdiffstats
path: root/generator/shibokengenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generator/shibokengenerator.cpp')
-rw-r--r--generator/shibokengenerator.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp
index da48a8519..9546da775 100644
--- a/generator/shibokengenerator.cpp
+++ b/generator/shibokengenerator.cpp
@@ -1114,7 +1114,6 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s,
// detect is we should use pyargs instead of args as variable name for python arguments
bool usePyArgs = false;
- int numArgs = 0;
if (func) {
// calc num of real arguments.
int argsRemoved = 0;
@@ -1122,7 +1121,6 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s,
if (func->argumentRemoved(i+1))
argsRemoved++;
}
- numArgs = func->arguments().size() - argsRemoved;
usePyArgs = pythonFunctionWrapperUsesListOfArguments(OverloadData(getFunctionGroups(func->implementingClass())[func->name()], this));
}