1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-29 07:37:45 +00:00

Merge pull request #150 from ShelbyZ/unreferenced

Remove unreferenced parameters
This commit is contained in:
Mordred 2017-10-22 11:01:56 +02:00 committed by GitHub
commit 711243f302
2 changed files with 4 additions and 4 deletions

View file

@ -709,7 +709,7 @@ int main(int argc, char* argv[])
else else
throw invalid_argument( "could not read file" ); throw invalid_argument( "could not read file" );
} }
catch( const exception &e ) catch( const exception & )
{ {
string content = "Path not found: " + request->path; string content = "Path not found: " + request->path;
*response << "HTTP/1.1 400 Bad Request\r\nContent-Length: " << content.length() << "\r\n\r\n" << content; *response << "HTTP/1.1 400 Bad Request\r\nContent-Length: " << content.length() << "\r\n\r\n" << content;

View file

@ -273,7 +273,7 @@ namespace SimpleWeb {
try { try {
content_length=stoull(it->second); content_length=stoull(it->second);
} }
catch(const std::exception &e) { catch( const std::exception & ) {
if(on_error) if(on_error)
on_error(request, boost::system::error_code(boost::system::errc::protocol_error, boost::system::generic_category())); on_error(request, boost::system::error_code(boost::system::errc::protocol_error, boost::system::generic_category()));
return; return;
@ -388,7 +388,7 @@ namespace SimpleWeb {
try { try {
http_version=stof(request->http_version); http_version=stof(request->http_version);
} }
catch(const std::exception &e){ catch( const std::exception & ){
if(on_error) if(on_error)
on_error(request, boost::system::error_code(boost::system::errc::protocol_error, boost::system::generic_category())); on_error(request, boost::system::error_code(boost::system::errc::protocol_error, boost::system::generic_category()));
return; return;
@ -410,7 +410,7 @@ namespace SimpleWeb {
try { try {
resource_function(response, request); resource_function(response, request);
} }
catch(const std::exception &e) { catch( const std::exception & ) {
if(on_error) if(on_error)
on_error(request, boost::system::error_code(boost::system::errc::operation_canceled, boost::system::generic_category())); on_error(request, boost::system::error_code(boost::system::errc::operation_canceled, boost::system::generic_category()));
return; return;