New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up internal package #7030
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 🎉
Can also remove this one?
http4s/core/shared/src/main/scala/org/http4s/internal/package.scala
Lines 97 to 98 in e6b853b
@deprecated("Use fs2.text.decodeWithCharset", "0.23.5") | |
def decode[F[_]: RaiseThrowable](charset: Charset): Pipe[F, Byte, String] = { in => |
case HexDecodeException => None | ||
} | ||
} | ||
|
||
private[http4s] def fromCompletionStage[F[_], CF[x] <: CompletionStage[x], A](fcs: F[CF[A]])( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to remove this too. Can't find if anyone is using it, and now we have fromCompletableFuture
in Cats Effect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I neither succeeded in finding usages of these, so let's do that!
() | ||
} | ||
} | ||
|
||
private[http4s] def unsafeToCompletionStage[F[_], A]( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this one too maybe? 😁
Also could not find use of this one, even inside of http4s core. http4s/core/shared/src/main/scala/org/http4s/internal/package.scala Lines 65 to 70 in fc60651
|
I wonder if we can upstream these ones 🤔
|
Mehhh, I planned to clean up after my activities in 0.23, not the whole |
😅 sorry, got over-zealous. Merge-at-will! |
Sorry for my laziness 🥲 will leave it as low-hanging fruit for successors #7031 |
A follow-up PR after refactoring in 0.23.