diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp index 8653e25738..2d48c50c83 100644 --- a/src/tools/moc/generator.cpp +++ b/src/tools/moc/generator.cpp @@ -632,12 +632,6 @@ void Generator::generateFunctions(const QList& 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)