Remove some commented out code that's not used any more.

This commit is contained in:
Daniel Patterson 2016-02-20 01:06:06 -08:00 committed by Patrick Niklaus
parent 95bf81f528
commit 3d6c0ac512

View File

@ -117,28 +117,12 @@ void RequestHandler::handle_request(const http::request &current_request,
current_reply.headers.emplace_back("Access-Control-Allow-Headers",
"X-Requested-With, Content-Type");
if (route_parameters.service == "tile") {
/*
std::istringstream is(json_result.values["pbf"].get<osrm::util::json::String>().value);
boost::iostreams::filtering_streambuf<boost::iostreams::input> in;
//in.push(boost::iostreams::gzip_compressor());
in.push(boost::iostreams::zlib_compressor());
in.push(is);
std::ostringstream os;
boost::iostreams::copy(in,os);
auto s = os.str();
std::copy(s.cbegin(),s.cend(), std::back_inserter(current_reply.content));
*/
if (route_parameters.service == "tile")
{
std::copy(json_result.values["pbf"].get<osrm::util::json::Buffer>().value.cbegin(),
json_result.values["pbf"].get<osrm::util::json::Buffer>().value.cend(),
std::back_inserter(current_reply.content));
//current_reply.content.append(json_result.values["pbf"].get<osrm::util::json::String>().value
current_reply.headers.emplace_back("Content-Type",
"application/x-protobuf");
}