From d186096dd9dd26ebbd0d0f8bb699eee8f331250f Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 14 Jun 2017 16:04:01 +0200 Subject: Remove unneeded member and dead code Change-Id: I62b214add022b4725a81297217616d8548db5c7e Reviewed-by: Ulf Hermann --- tools/qscxmlc/generator.cpp | 5 +---- tools/qscxmlc/moc.h | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/qscxmlc/generator.cpp b/tools/qscxmlc/generator.cpp index 02e41c8..048cf3e 100644 --- a/tools/qscxmlc/generator.cpp +++ b/tools/qscxmlc/generator.cpp @@ -1505,10 +1505,7 @@ void Generator::generateSignal(FunctionDef *def,int index) if (def->normalizedType == "void") { fprintf(out, "Q_NULLPTR"); } else { - if (def->returnTypeIsVolatile) - fprintf(out, "const_cast(reinterpret_cast(&_t0))"); - else - fprintf(out, "const_cast(reinterpret_cast(&_t0))"); + fprintf(out, "const_cast(reinterpret_cast(&_t0))"); } int i; for (i = 1; i < offset; ++i) diff --git a/tools/qscxmlc/moc.h b/tools/qscxmlc/moc.h index a2ecb88..56aedad 100644 --- a/tools/qscxmlc/moc.h +++ b/tools/qscxmlc/moc.h @@ -75,7 +75,7 @@ struct ArgumentDef struct FunctionDef { - FunctionDef(): returnTypeIsVolatile(false), access(Private), isConst(false), isVirtual(false), isStatic(false), + FunctionDef(): access(Private), isConst(false), isVirtual(false), isStatic(false), inlineCode(false), wasCloned(false), isCompat(false), isInvokable(false), isScriptable(false), isSlot(false), isSignal(false), isPrivateSignal(false), isConstructor(false), isDestructor(false), isAbstract(false), revision(0), implementation(0) {} @@ -84,7 +84,6 @@ struct FunctionDef QByteArray tag; QByteArray name; QByteArray mangledName; - bool returnTypeIsVolatile; QList arguments; -- cgit v1.2.3