diff options
author | Joe George <joe@zeroc.com> | 2016-07-28 17:10:07 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2016-07-28 17:10:07 -0400 |
commit | 8ecac9e45335e4e0f17e54a17c66535a6040bf8e (patch) | |
tree | 46b23e77125d1e12276d7894838ac2bffcd9e437 /cpp/src/slice2cs | |
parent | No python cross tests for non VC140 builds (diff) | |
download | ice-8ecac9e45335e4e0f17e54a17c66535a6040bf8e.tar.bz2 ice-8ecac9e45335e4e0f17e54a17c66535a6040bf8e.tar.xz ice-8ecac9e45335e4e0f17e54a17c66535a6040bf8e.zip |
Remove unused variables in slice2cs build
Diffstat (limited to 'cpp/src/slice2cs')
-rw-r--r-- | cpp/src/slice2cs/Gen.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index 1373460a760..697a85d979b 100644 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -420,7 +420,7 @@ Slice::CsVisitor::writeInheritedOperations(const ClassDefPtr& p) else { _out << sp << nl << "public abstract " << typeToString((*i)->returnType(), (*i)->returnIsOptional()) << ' ' - << fixId((*i)->name(), DotNet::ICloneable, true) << spar << getParams(*i) + << fixId((*i)->name(), DotNet::ICloneable, true) << spar << getParams(*i) << (containingClass->isLocal() ? "" : "Ice.Current current__ = null") << epar << ";"; } } @@ -458,7 +458,7 @@ Slice::CsVisitor::writeDispatch(const ClassDefPtr& p) { emitGeneratedCodeAttribute(); } - + _out << nl << "public static new readonly string[] ids__ = "; _out << sb; { @@ -966,9 +966,7 @@ Slice::CsVisitor::writeMarshaling(const ClassDefPtr& p) ids.merge(other); ids.unique(); - StringList::const_iterator firstIter = ids.begin(); - StringList::const_iterator scopedIter = find(ids.begin(), ids.end(), scoped); - assert(scopedIter != ids.end()); + assert(find(ids.begin(), ids.end(), scoped) != ids.end()); // // Marshalling support @@ -2847,12 +2845,12 @@ Slice::Gen::TypesVisitor::visitClassDefEnd(const ClassDefPtr& p) _out << sb; _out << nl << "return static_id__;"; _out << eb; - + _out << nl << "public override string ice_id()"; _out << sb; _out << nl << "return static_id__;"; _out << eb; - + writeMarshaling(p); } |