summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.cpp
diff options
context:
space:
mode:
authorAustin Henriksen <austin@zeroc.com>2019-10-30 05:14:29 -0400
committerJoe George <joe@zeroc.com>2021-02-01 16:46:35 -0500
commit452f57976a135c8b72fc8d8f580d5d50618c0cae (patch)
tree0233eedd3cdc380126fd613b04b8b468beb289c0 /cpp/src/slice2java/Gen.cpp
parentRemove IcePatch2 (#602) (diff)
downloadice-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/slice2java/Gen.cpp')
-rw-r--r--cpp/src/slice2java/Gen.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp
index 160ab5c238d..41299779644 100644
--- a/cpp/src/slice2java/Gen.cpp
+++ b/cpp/src/slice2java/Gen.cpp
@@ -3,7 +3,6 @@
//
#include <Gen.h>
-#include <Slice/Checksum.h>
#include <Slice/Util.h>
#include <IceUtil/Functional.h>
#include <IceUtil/Iterator.h>
@@ -2277,63 +2276,6 @@ Slice::Gen::generateImpl(const UnitPtr& p)
p->visit(&implVisitor, false);
}
-void
-Slice::Gen::writeChecksumClass(const string& checksumClass, const string& dir, const ChecksumMap& m)
-{
- //
- // Attempt to open the source file for the checksum class.
- //
- JavaOutput out;
- out.openClass(checksumClass, dir);
-
- //
- // Get the class name.
- //
- string className;
- string::size_type pos = checksumClass.rfind('.');
- if(pos == string::npos)
- {
- className = checksumClass;
- }
- else
- {
- className = checksumClass.substr(pos + 1);
- }
-
- //
- // Emit the class.
- //
- out << sp;
- out << nl << "/** @hidden */";
- out << nl << "public class " << className;
- out << sb;
-
- //
- // Use a static initializer to populate the checksum map.
- //
- out << sp << nl << "public static final java.util.Map<String, String> checksums;";
- out << sp << nl << "static";
- out << sb;
- out << nl << "java.util.Map<String, String> map = new java.util.HashMap<>();";
- for(ChecksumMap::const_iterator p = m.begin(); p != m.end(); ++p)
- {
- out << nl << "map.put(\"" << 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 << nl << "checksums = java.util.Collections.unmodifiableMap(map);";
-
- out << eb;
- out << eb;
- out << nl;
-}
-
Slice::Gen::PackageVisitor::PackageVisitor(const string& dir) :
JavaVisitor(dir)
{