diff options
| author | 2013-06-18 21:25:43 +0200 | |
|---|---|---|
| committer | 2013-06-18 21:25:43 +0200 | |
| commit | 50ecf259b61eb389559dc24a7c4af718c225ec8d (patch) | |
| tree | b0475a42827973ff338e5a1d6b1b56c81dcaac89 /src/inspircd.cpp | |
| parent | Minor changes to the startup and shutdown code (diff) | |
| download | inspircd++-50ecf259b61eb389559dc24a7c4af718c225ec8d.tar.gz inspircd++-50ecf259b61eb389559dc24a7c4af718c225ec8d.tar.bz2 inspircd++-50ecf259b61eb389559dc24a7c4af718c225ec8d.zip | |
Remove dead code from the InspIRCd and CommandParser classes and typedefs.h
Removed functions:
InspIRCd:
- Restart() - unused
- DoSocketTimeouts() - no implementation exists
- AddCommand() - useless wrapper around ModuleManager::AddService()
CommandParser:
- IsValidCommand() - unused
- ProcessParameters() - no implementation exists
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index a469de640..29156973c 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -140,35 +140,6 @@ void InspIRCd::Cleanup() DeleteZero(this->Logs); } -void InspIRCd::Restart(const std::string &reason) -{ - /* SendError flushes each client's queue, - * regardless of writeability state - */ - this->SendError(reason); - - /* Figure out our filename (if theyve renamed it, we're boned) */ - std::string me; - - char** argv = Config->cmdline.argv; - -#ifdef _WIN32 - char module[MAX_PATH]; - if (GetModuleFileNameA(NULL, module, MAX_PATH)) - me = module; -#else - me = argv[0]; -#endif - - this->Cleanup(); - - if (execv(me.c_str(), argv) == -1) - { - /* Will raise a SIGABRT if not trapped */ - throw CoreException(std::string("Failed to execv()! error: ") + strerror(errno)); - } -} - void InspIRCd::SetSignals() { #ifndef _WIN32 |
