Skip to content
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

chore: Remove unused import #378

Merged
merged 4 commits into from
Dec 23, 2023
Merged

Conversation

laglangyue
Copy link
Contributor

This PR includes:
such as title,remvoe some not import package
motivations:
I find there are some waning about unused
test:
Removed some unused import, so I just compiled locally,it will test by CI

@laglangyue
Copy link
Contributor Author

laglangyue commented Dec 21, 2023

I also find a warning ,but I think that this may be a false warning.

[warn] /home/laglang/coding/incubator-pekko-http/parsing/src/main/scala-2/org/apache/pekko/http/ccompat/pre213macro.scala:17:36: Unused import
[warn] import scala.language.experimental.macros
[warn]                                    ^
[warn] /home/laglang/coding/incubator-pekko-http/parsing/src/main/scala-2/org/apache/pekko/http/ccompat/since213macro.scala:17:36: Unused import
[warn] import scala.language.experimental.macros


[warn] /home/laglang/coding/incubator-pekko-http/http/src/main/scala/org/apache/pekko/http/javadsl/server/RoutingJavaMapping.scala:37:27: Unused import
[warn]     import scala.language.implicitConversions
[warn]                           ^
[warn] /home/laglang/coding/incubator-pekko-http/http/src/main/scala/org/apache/pekko/http/scaladsl/server/ExceptionHandler.scala:21:23: Unused import
[warn] import scala.language.implicitConversions

@pjfanning
Copy link
Contributor

this breaks the scala 2.12 build - please close this

@laglangyue
Copy link
Contributor Author

this breaks the scala 2.12 build - please close this

Sorry,I didn't test it carefully on 2.12 before, and I still think some imports are not related to the scala version. I will review this PR again

@laglangyue laglangyue changed the title [Chore] remove unused import [Draft] [Chore] remove unused import Dec 23, 2023
Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, everything is compiling

Copy link
Member

@He-Pin He-Pin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@He-Pin He-Pin changed the title [Draft] [Chore] remove unused import chore: Remove unused import Dec 23, 2023
@pjfanning pjfanning merged commit 740ffff into apache:main Dec 23, 2023
10 checks passed
He-Pin pushed a commit to He-Pin/incubator-pekko-http that referenced this pull request Dec 24, 2023
* [Chore] remove unused import

* [Chore] remove unused import

* revert `pekko.http.ccompat._`

* revert seq imports

---------

Co-authored-by: Jiafu Tang <jiafu.tang@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants