summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cs/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cs/Gen.cpp')
-rw-r--r--cpp/src/slice2cs/Gen.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp
index cbe3518cb94..2ba18346a34 100644
--- a/cpp/src/slice2cs/Gen.cpp
+++ b/cpp/src/slice2cs/Gen.cpp
@@ -16,7 +16,6 @@
#include <IceUtil/Iterator.h>
#include <IceUtil/UUID.h>
-#include <Slice/Checksum.h>
#include <Slice/FileTracker.h>
#include <Slice/Util.h>
#include <DotNetNames.h>
@@ -2066,51 +2065,6 @@ Slice::Gen::generateImplTie(const UnitPtr& p)
}
void
-Slice::Gen::generateChecksums(const UnitPtr& u)
-{
- ChecksumMap map = createChecksums(u);
- if(!map.empty())
- {
- string className = "X" + generateUUID();
- for(string::size_type pos = 1; pos < className.size(); ++pos)
- {
- if(!isalnum(static_cast<unsigned char>(className[pos])))
- {
- className[pos] = '_';
- }
- }
-
- _out << sp << nl << "namespace IceInternal";
- _out << sb;
- _out << nl << "namespace SliceChecksums";
- _out << sb;
- _out << nl << "[global::System.CodeDom.Compiler.GeneratedCodeAttribute(\"slice2cs\", \"" << ICE_STRING_VERSION
- << "\")]";
- _out << nl << "public sealed class " << className;
- _out << sb;
- _out << nl << "public static global::System.Collections.Hashtable map = new global::System.Collections.Hashtable();";
- _out << sp << nl << "static " << className << "()";
- _out << sb;
- for(ChecksumMap::const_iterator p = map.begin(); p != map.end(); ++p)
- {
- _out << nl << "map.Add(\"" << p->first << "\", \"";
- ostringstream str;
- str.flags(ios_base::hex);
- str.fill('0');
- for(vector<unsigned char>::const_iterator q = p->second.begin(); q != p->second.end(); ++q)
- {
- str << static_cast<int>(*q);
- }
- _out << str.str() << "\");";
- }
- _out << eb;
- _out << eb << ';';
- _out << eb;
- _out << eb;
- }
-}
-
-void
Slice::Gen::closeOutput()
{
_out.close();