summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cs
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cs')
-rw-r--r--cpp/src/slice2cs/Gen.cpp46
-rw-r--r--cpp/src/slice2cs/Gen.h1
-rw-r--r--cpp/src/slice2cs/Main.cpp8
3 files changed, 0 insertions, 55 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();
diff --git a/cpp/src/slice2cs/Gen.h b/cpp/src/slice2cs/Gen.h
index 202998ea4ae..7bc78355a64 100644
--- a/cpp/src/slice2cs/Gen.h
+++ b/cpp/src/slice2cs/Gen.h
@@ -90,7 +90,6 @@ public:
void generate(const UnitPtr&);
void generateImpl(const UnitPtr&);
void generateImplTie(const UnitPtr&);
- void generateChecksums(const UnitPtr&);
void closeOutput();
private:
diff --git a/cpp/src/slice2cs/Main.cpp b/cpp/src/slice2cs/Main.cpp
index a3826690354..0b01a6271ed 100644
--- a/cpp/src/slice2cs/Main.cpp
+++ b/cpp/src/slice2cs/Main.cpp
@@ -72,7 +72,6 @@ usage(const string& n)
"--tie Generate tie classes.\n"
"--impl Generate sample implementations.\n"
"--impl-tie Generate sample tie implementations.\n"
- "--checksum Generate checksums for Slice definitions.\n"
"--ice Allow reserved Ice prefix in Slice identifiers\n"
" deprecated: use instead [[\"ice-prefix\"]] metadata.\n"
"--underscore Allow underscores in Slice identifiers\n"
@@ -101,7 +100,6 @@ compile(const vector<string>& argv)
opts.addOpt("d", "debug");
opts.addOpt("", "ice");
opts.addOpt("", "underscore");
- opts.addOpt("", "checksum");
bool validate = find(argv.begin(), argv.end(), "--validate") != argv.end();
vector<string> args;
@@ -172,8 +170,6 @@ compile(const vector<string>& argv)
bool underscore = opts.isSet("underscore");
- bool checksum = opts.isSet("checksum");
-
if(args.empty())
{
consoleErr << argv[0] << ": error: no input file" << endl;
@@ -314,10 +310,6 @@ compile(const vector<string>& argv)
{
gen.generateImplTie(p);
}
- if(checksum)
- {
- gen.generateChecksums(p);
- }
}
catch(const Slice::FileException& ex)
{