From 97e3a683d5027e8d9d70742171629dab0e0bd7cd Mon Sep 17 00:00:00 2001 From: colmsnowplow Date: Mon, 4 Sep 2023 13:08:31 +0100 Subject: [PATCH] cleanup --- .../Http.scala | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/sinks/src/main/scala/com.snowplowanalytics.snowplow.eventgen/Http.scala b/sinks/src/main/scala/com.snowplowanalytics.snowplow.eventgen/Http.scala index 3706673..158db85 100644 --- a/sinks/src/main/scala/com.snowplowanalytics.snowplow.eventgen/Http.scala +++ b/sinks/src/main/scala/com.snowplowanalytics.snowplow.eventgen/Http.scala @@ -95,26 +95,7 @@ object Http { // HEAD requests induce server errors that will take some digging to figure out. // In the interest of getting to a usable tool quickly, for now we just throw an error for these. case TrackerMethod.Head(_) => throw new NotImplementedError ( "HEAD requests not implemented" ) - - /* - generatedRequest.qs match { - case None => address - case Some(querystring: HttpRequestQuerystring) => - // val newUri = address - querystring.toProto - querystring.toProto.foreach(kv => - address = address.withQueryParam(kv.getName(), kv.getValue()) - ) - } - - - Request[F](method = Method.HEAD, uri = address).putHeaders(parseHeaders(generatedRequest.headers)) - */ - - // This hits org.http4s.client.UnexpectedStatus: unexpected HTTP status: 422 Unprocessable Entity for request HEAD - } - // TODO: Some code repetition can probably be removed from this return req }