mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 12:47:48 +02:00
Fix all unused parameter warnings (issue #260)
This commit is contained in:
parent
828ac404eb
commit
48c66a1d08
13 changed files with 60 additions and 60 deletions
|
@ -238,7 +238,7 @@ void I2PControlSession::handleEcho(const PropertyTree& pt, Response& response)
|
|||
response.setParam(I2P_CONTROL_PARAM_RESULT, echo);
|
||||
}
|
||||
|
||||
void I2PControlSession::handleI2PControl(const PropertyTree& pt, Response& response)
|
||||
void I2PControlSession::handleI2PControl(const PropertyTree&, Response&)
|
||||
{
|
||||
LogPrint(eLogDebug, "I2PControl I2PControl");
|
||||
// TODO: implement
|
||||
|
@ -279,9 +279,9 @@ void I2PControlSession::handleRouterManager(const PropertyTree& pt, Response& re
|
|||
}
|
||||
}
|
||||
|
||||
void I2PControlSession::handleNetworkSetting(const PropertyTree& pt, Response& response)
|
||||
void I2PControlSession::handleNetworkSetting(const PropertyTree&, Response&)
|
||||
{
|
||||
|
||||
// TODO: implement
|
||||
}
|
||||
|
||||
void I2PControlSession::handleUptime(Response& response)
|
||||
|
@ -351,7 +351,7 @@ void I2PControlSession::handleShutdown(Response& response)
|
|||
response.setParam(I2P_CONTROL_ROUTER_MANAGER_SHUTDOWN, "");
|
||||
// 1 second to make sure response has been sent
|
||||
shutdownTimer.expires_from_now(boost::posix_time::seconds(1));
|
||||
shutdownTimer.async_wait([](const boost::system::error_code& ecode) {
|
||||
shutdownTimer.async_wait([](const boost::system::error_code&) {
|
||||
Daemon.running = 0;
|
||||
});
|
||||
}
|
||||
|
@ -363,7 +363,7 @@ void I2PControlSession::handleShutdownGraceful(Response& response)
|
|||
LogPrint(eLogInfo, "Graceful shutdown requested. Will shutdown after ", timeout, " seconds");
|
||||
response.setParam(I2P_CONTROL_ROUTER_MANAGER_SHUTDOWN_GRACEFUL, "");
|
||||
shutdownTimer.expires_from_now(boost::posix_time::seconds(timeout + 1));
|
||||
shutdownTimer.async_wait([](const boost::system::error_code& ecode) {
|
||||
shutdownTimer.async_wait([](const boost::system::error_code&) {
|
||||
Daemon.running = 0;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue