Remove duplicated code from moc generator

Change-Id: I0d603ac39068f796fc7397a74230d544a16e0371
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Jędrzej Nowacki 2013-12-19 00:43:35 +01:00 committed by The Qt Project
parent a88d97174e
commit 4a8ce53ad6

View File

@ -632,12 +632,6 @@ void Generator::generateFunctions(const QList<FunctionDef>& list, const char *fu
const FunctionDef &f = list.at(i);
unsigned char flags = type;
if (f.access == FunctionDef::Private)
flags |= AccessPrivate;
else if (f.access == FunctionDef::Public)
flags |= AccessPublic;
else if (f.access == FunctionDef::Protected)
flags |= AccessProtected;
if (f.access == FunctionDef::Private)
flags |= AccessPrivate;
else if (f.access == FunctionDef::Public)