diff options
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 611ced9f818..1f0a42d7bc6 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1224,10 +1224,6 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) TypePtr ret = p->returnType(); string retS = returnTypeToString(ret); - //TypeStringList inParams = p->inputParameters(); - //TypeStringList outParams = p->outputParameters(); - //TypeStringList::const_iterator q; - string params = "("; string paramsDecl = "("; // With declarators string args = "("; @@ -1247,34 +1243,6 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) args += ", "; } -#if 0 - for(q = inParams.begin(); q != inParams.end(); ++q) - { - string typeString = inputTypeToString(q->first); - params += typeString; - paramsDecl += typeString; - paramsDecl += ' '; - paramsDecl += fixKwd(q->second); - args += fixKwd(q->second); - params += ", "; - paramsDecl += ", "; - args += ", "; - } - - for(q = outParams.begin(); q != outParams.end(); ++q) - { - string typeString = outputTypeToString(q->first); - params += typeString; - paramsDecl += typeString; - paramsDecl += ' '; - paramsDecl += fixKwd(q->second); - args += fixKwd(q->second); - params += ", "; - paramsDecl += ", "; - args += ", "; - } -#endif - params += "const ::Ice::Context& = ::Ice::Context())"; paramsDecl += "const ::Ice::Context& __context)"; args += "__context)"; @@ -1423,10 +1391,6 @@ Slice::Gen::DelegateVisitor::visitOperation(const OperationPtr& p) TypePtr ret = p->returnType(); string retS = returnTypeToString(ret); - //TypeStringList inParams = p->inputParameters(); - //TypeStringList outParams = p->outputParameters(); - //TypeStringList::const_iterator q; - string params = "("; ParamDeclList paramList = p->parameters(); @@ -2091,7 +2055,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) { C << nl << "case " << i++ << ':'; C << sb; - C << nl << "return ___" << *q << "(in, current);"; + C << nl << "return ___" << fixKwd(*q) << "(in, current);"; C << eb; } C << eb; @@ -2847,10 +2811,6 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) TypePtr ret = op->returnType(); string retS = returnTypeToString(ret); - //TypeStringList inParams = op->inputParameters(); - //TypeStringList outParams = op->outputParameters(); - //TypeStringList::const_iterator q; - H << sp << nl << "virtual " << retS << ' ' << opName << '('; H.useCurrentPosAsIndent(); ParamDeclList paramList = op->parameters(); |