code cleaning

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1729 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2009-10-27 20:39:14 +00:00
parent 16949dded9
commit 9132dcf700

View File

@ -1932,14 +1932,7 @@ int RsServer::StartupRetroShare()
mAuthMgr = getAuthMgr(); mAuthMgr = getAuthMgr();
/**************** PQI_USE_XPGP ******************/
#if defined(PQI_USE_XPGP)
if (1 != mAuthMgr -> InitAuth(NULL, NULL, NULL)) if (1 != mAuthMgr -> InitAuth(NULL, NULL, NULL))
#else /* X509 Certificates */
/**************** PQI_USE_XPGP ******************/
if (1 != mAuthMgr -> InitAuth(NULL, NULL, NULL))
#endif /* X509 Certificates */
/**************** PQI_USE_XPGP ******************/
{ {
std::cerr << "main() - Fatal Error....." << std::endl; std::cerr << "main() - Fatal Error....." << std::endl;
std::cerr << "Invalid Certificate configuration!" << std::endl; std::cerr << "Invalid Certificate configuration!" << std::endl;
@ -1968,7 +1961,6 @@ int RsServer::StartupRetroShare()
} }
/**************************************************************************/ /**************************************************************************/
// Load up Certificates, and Old Configuration (if present) // Load up Certificates, and Old Configuration (if present)
std::string certConfigFile = RsInitConfig::configDir.c_str(); std::string certConfigFile = RsInitConfig::configDir.c_str();
@ -2160,13 +2152,6 @@ int RsServer::StartupRetroShare()
/* Hack Old Configuration into new System (first load only) */ /* Hack Old Configuration into new System (first load only) */
/**************************************************************************/ /**************************************************************************/
/**************** PQI_USE_XPGP ******************/
#if defined(PQI_USE_XPGP)
#else /* X509 Certificates */
/**************** PQI_USE_XPGP ******************/
#endif /* X509 Certificates */
/**************** PQI_USE_XPGP ******************/
/**************************************************************************/ /**************************************************************************/
/* trigger generalConfig loading for classes that require it */ /* trigger generalConfig loading for classes that require it */
/**************************************************************************/ /**************************************************************************/
@ -2269,7 +2254,6 @@ int RsServer::StartupRetroShare()
rsPhoto = new p3Photo(photoService); rsPhoto = new p3Photo(photoService);
rsStatus = new p3Status(); rsStatus = new p3Status();
rsQblog = new p3Blog(mQblog); rsQblog = new p3Blog(mQblog);
#else #else
rsGameLauncher = NULL; rsGameLauncher = NULL;
rsPhoto = NULL; rsPhoto = NULL;
@ -2294,7 +2278,3 @@ int RsServer::StartupRetroShare()
return 1; return 1;
} }