Removed std::stringstream.

Removed not necessary include <sstream>.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5112 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-04-19 22:10:00 +00:00
parent 4e26884646
commit a6dfac2a37
33 changed files with 12 additions and 46 deletions

View File

@ -30,7 +30,6 @@
#include <iostream>
#include <iomanip>
#include <sstream>
#define LPF_FACTOR (0.90)

View File

@ -35,7 +35,6 @@
#include <string.h>
#include <iostream>
#include <sstream>
#include <iomanip>
/**

View File

@ -33,7 +33,6 @@
#include <iostream>
#include <iomanip>
#include <sstream>
#define BITDHT_QUERY_START_PEERS 10

View File

@ -35,7 +35,6 @@
#include <limits.h>
#include <iostream>
#include <sstream>
#include <iomanip>
/**

View File

@ -27,7 +27,6 @@
#include "util/bdbloom.h"
#include "bitdht/bdstddht.h"
#include <iostream>
#include <sstream>
#define N_TESTS 100

View File

@ -27,7 +27,6 @@
#include "util/bdbloom.h"
#include "bitdht/bdstddht.h"
#include <iostream>
#include <sstream>
#define N_TESTS 100

View File

@ -33,7 +33,6 @@
#include <stdlib.h>
#include <unistd.h> /* for usleep() */
#include <iostream>
#include <sstream>
#include <iomanip>
#include <string.h>

View File

@ -26,7 +26,6 @@
#include "udp/udpstack.h"
#include <iostream>
#include <sstream>
#include <iomanip>
#include <string.h>
#include <stdlib.h>

View File

@ -28,7 +28,6 @@
#include "util/rsdir.h"
#include <iostream>
#include <sstream>
#include <iomanip>
/****

View File

@ -30,7 +30,6 @@
#include "tcponudp/udpstunner.h"
#include "bitdht/bdstddht.h"
#include <sstream>
void convertBdPeerToRsDhtPeer(RsDhtPeer &peer, const bdPeer &int_peer);
void convertDhtPeerDetailsToRsDhtNetPeer(RsDhtNetPeer &status, const DhtPeerDetails &details);

View File

@ -3,7 +3,6 @@
#include <stdio.h>
#include <iostream>
#include <sstream>
#include "bitdht/bdiface.h"

View File

@ -25,7 +25,6 @@
#include <unistd.h> /* for (u)sleep() */
#include <iostream>
#include <sstream>
#include "util/rsdebug.h"
#include "util/rsdir.h"
#include "retroshare/rstypes.h"

View File

@ -36,7 +36,6 @@
#include <util/pgpkey.h>
#include <unistd.h> /* for (u)sleep() */
#include <iostream>
#include <sstream>
#include <algorithm>
#include "serialiser/rsconfigitems.h"
#include "cleanupxpgp.h"

View File

@ -32,7 +32,6 @@
#include <errno.h>
#include <openssl/err.h>
#include <sstream>
#include "util/rsdebug.h"
#include "util/rsnet.h"

View File

@ -41,7 +41,6 @@
#include <openssl/rand.h>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <string.h>
@ -728,9 +727,9 @@ int LoadCheckX509(const char *cert_file, std::string &issuerName, std::string &l
location = getX509LocString(x509->cert_info->subject);
}
#ifdef AUTHSSL_DEBUG
#ifdef AUTHSSL_DEBUG
std::cout << getX509Info(x509) << std::endl ;
#endif
#endif
// clean up.
X509_free(x509);
@ -857,21 +856,20 @@ std::string getX509CountryString(X509_NAME *name)
}
#ifdef AUTHSSL_DEBUG
std::string getX509Info(X509 *cert)
{
std::stringstream out;
long l;
std::string out = "X509 Certificate:\n";
out << "X509 Certificate:" << std::endl;
long l;
l=X509_get_version(cert);
out << " Version: " << l+1 << "(0x" << l << ")" << std::endl;
out << " Subject: " << std::endl;
out << " " << getX509NameString(cert->cert_info->subject);
out << std::endl;
out << std::endl;
out << " Signatures:" << std::endl;
return out.str();
rs_sprintf_append(out, " Version: %ld(0x%ld)\n", l+1, l);
out += " Subject: \n";
out += " " + getX509NameString(cert->cert_info->subject) + "\n\n";
out += " Signatures:\n";
return out;
}
#endif
/********** SSL ERROR STUFF ******************************************/

View File

@ -25,7 +25,6 @@
#include "rsserver/p3discovery.h"
#include <iostream>
#include <sstream>
RsDisc *rsDisc = NULL;

View File

@ -28,7 +28,6 @@
#include "rsserver/p3face.h"
#include <iostream>
#include <sstream>
#include "pqi/authssl.h"
#include "pqi/authgpg.h"
#include "retroshare/rsinit.h"

View File

@ -29,7 +29,6 @@
#include "util/rsdir.h"
#include <iostream>
#include <sstream>
#include "util/rsdebug.h"
const int p3facemsgzone = 11453;

View File

@ -27,7 +27,6 @@
#include <iostream>
#include <sstream>
#include "util/rsdir.h"
#include "util/rsdebug.h"

View File

@ -1785,7 +1785,6 @@ RsTurtle *rsTurtle = NULL ;
#include <list>
#include <string>
#include <sstream>
// for blocking signals
#include <signal.h>

View File

@ -31,7 +31,6 @@
#include "retroshare/rstypes.h"
#include <iostream>
#include <sstream>
#include <iomanip>

View File

@ -31,7 +31,6 @@
#include "rsbaseserial.h"
#include "util/rsprint.h"
#include <ostream>
#include <sstream>
#include <iomanip>
#include <iostream>

View File

@ -31,7 +31,6 @@
#include "rsbaseserial.h"
#include "util/rsprint.h"
#include <ostream>
#include <sstream>
#include <iomanip>
#include <iostream>

View File

@ -31,7 +31,6 @@
#include "rsbaseserial.h"
#include "util/rsprint.h"
#include <ostream>
#include <sstream>
#include <iomanip>
#include <iostream>

View File

@ -31,7 +31,6 @@
#include "rsbaseserial.h"
#include "util/rsprint.h"
#include <ostream>
#include <sstream>
#include <iomanip>
#include <iostream>

View File

@ -28,7 +28,6 @@
#include "rsbaseserial.h"
#include "util/rsprint.h"
#include <ostream>
#include <sstream>
#include <iomanip>
#include <iostream>

View File

@ -42,8 +42,6 @@
const uint32_t AUTODISC_LDI_SUBTYPE_PING = 0x01;
const uint32_t AUTODISC_LDI_SUBTYPE_RPLY = 0x02;
#include <sstream>
#include "util/rsdebug.h"
#include "util/rsprint.h"
#include "util/rsversion.h"

View File

@ -27,7 +27,6 @@
#include "services/p3gameservice.h"
#include "util/rsdebug.h"
#include "pqi/p3linkmgr.h"
#include <sstream>
#include <iomanip>
/* global variable for GUI */

View File

@ -50,7 +50,7 @@
#include <errno.h>
#include <cmath>
#include <sstream>
#include <sstream> // for std::istringstream
#include <stdio.h>
#include "util/rsdebug.h"

View File

@ -459,7 +459,6 @@ class uPnPConfigData
};
#include <iostream>
#include <sstream>
#include "util/rsnet.h"

View File

@ -8,7 +8,6 @@
#include <string.h>
#include <string>
#include <sstream>
#include <iostream>
#include <set>
#include <vector>

View File

@ -570,7 +570,6 @@ bool RsDirUtil::hashFile(const std::string& filepath,
#include <openssl/sha.h>
#include <sstream>
#include <iomanip>
/* Function to hash, and get details of a file */

View File

@ -28,7 +28,6 @@
#include "zeroconf/p3zcnatassist.h"
#include <openssl/sha.h>
#include <sstream>
#include <iostream>
//#define DEBUG_ZCNATASSIST 1