diff options
author | Austin Henriksen <austin@zeroc.com> | 2019-10-30 05:14:29 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2021-02-01 16:46:35 -0500 |
commit | 452f57976a135c8b72fc8d8f580d5d50618c0cae (patch) | |
tree | 0233eedd3cdc380126fd613b04b8b468beb289c0 /cpp/src/slice2cs/Gen.cpp | |
parent | Remove IcePatch2 (#602) (diff) | |
download | ice-452f57976a135c8b72fc8d8f580d5d50618c0cae.tar.bz2 ice-452f57976a135c8b72fc8d8f580d5d50618c0cae.tar.xz ice-452f57976a135c8b72fc8d8f580d5d50618c0cae.zip |
Remove checksum support (#607)
* Removed checksum sources from swift mapping project file.
* Removed checksum tests from Python.
* Removed checksum from Python mapping.
* Removed checksum tests from PHP mapping.
* Removed checksum support from PHP mapping.
* Removed checksum sources from MATLAB project file.
* Removed checksum option from slice2x manpages.
* Removed checksum sources from JavaScript mapping.
* Removed checksum tests from Java mapping.
* Removed outdated checksum metadata from Java mapping.
* Removed checksum support from Java mapping.
* Removed checksum tests from csharp.
* Removed checksum support from csharp mapping.
* Removed checksum tests from cpp
* Removed checksum support from IceBox.
* Removed checksum support from IceStorm.
* Removed Slice checksum support from IceGrid.
* Fixed broken filters file for Slice VS project.
* Removed checksum support from cpp mapping.
* Removed checksum support from Slice definitions.
* Removed checksum support from cpp98 mapping.
Diffstat (limited to 'cpp/src/slice2cs/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cs/Gen.cpp | 46 |
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(); |