summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-02-17 19:35:44 +0100
committerJose <jose@zeroc.com>2017-02-17 19:35:44 +0100
commitcb769f64ee975766959f0f917f3186cb61d6c27a (patch)
tree61f07f75ffddf92e76ea4c8e21f8ba2766405f25 /cpp/src
parentCorrection to changelog entry (diff)
downloadice-cb769f64ee975766959f0f917f3186cb61d6c27a.tar.bz2
ice-cb769f64ee975766959f0f917f3186cb61d6c27a.tar.xz
ice-cb769f64ee975766959f0f917f3186cb61d6c27a.zip
Remove unused code
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/IceSSL/RFC2253.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/cpp/src/IceSSL/RFC2253.cpp b/cpp/src/IceSSL/RFC2253.cpp
index 5c81a055981..7d14e26a3af 100644
--- a/cpp/src/IceSSL/RFC2253.cpp
+++ b/cpp/src/IceSSL/RFC2253.cpp
@@ -494,48 +494,3 @@ eatWhite(const string& data, size_t& pos)
++pos;
}
}
-
-#ifdef never
-void
-print(const list< list<pair<string, string> > >& r)
-{
- if(r.size() > 1)
- {
- consoleOut << "result: " << r.size() << " DNs" << endl;
- }
- for(list< list<pair<string, string> > >::const_iterator q = r.begin(); q != r.end(); ++q)
- {
- list<pair<string, string> > l = *q;
- consoleOut << "result: " << l.size() << " RDNs" << endl;
- for(list<pair<string, string> >::const_iterator p = l.begin(); p != l.end(); ++p)
- {
- consoleOut << "\t\"" << p->first << "\"=\"" << p->second << "\"" << endl;
- }
- }
-}
-
-int
-main()
-{
- string examples[] = {
- "CN=Steve Kille,O=Isode Limited,C=GB",
- "OU=Sales+CN=J. Smith,O=Widget Inc.,C=US",
- "CN=L. Eagle,O=Sue\\, Grabbit and Runn,C=GB",
- "CN=Before\\0DAfter,O=Test,C=GB",
- "1.3.6.1.4.1.1466.0=#04024869,O=Test,C=GB",
- "SN=Lu\\C4\\8Di\\C4\\87",
- };
- try
- {
- for(int i = 0; i < sizeof(examples)/sizeof(examples[0]); ++i)
- {
- consoleOut << "string: " << examples[i] << endl;
- print(RFC2253::parse(examples[i]));
- }
- }
- catch(const RFC2253::ParseException& e)
- {
- consoleOut << "error: " << e.reason << endl;
- }
-}
-#endif