moc: Don't check for signalList size

We already check methodList, and as it is comprised of signalList,
slotList and methodList from cdef, this is redundant.

Change-Id: I0d1791f821134060aa20a8ea9b57f049b2701bf9
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
Robin Burchell 2017-01-09 10:41:44 +01:00
parent 4b4bd6ab98
commit 1a7ebeb5cb

View File

@ -1067,7 +1067,7 @@ void Generator::generateMetacall()
fprintf(out, "\n#endif // QT_NO_PROPERTIES");
}
if (methodList.size() || cdef->signalList.size() || cdef->propertyList.size())
if (methodList.size() || cdef->propertyList.size())
fprintf(out, "\n ");
fprintf(out,"return _id;\n}\n");
}