-
-
Notifications
You must be signed in to change notification settings - Fork 255
chore: remove unused code #1252
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
Conversation
@incendial thank you for the PR, it does make sense. |
Codecov ReportBase: 89.72% // Head: 76.45% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1252 +/- ##
===========================================
- Coverage 89.72% 76.45% -13.28%
===========================================
Files 155 11 -144
Lines 5034 327 -4707
===========================================
- Hits 4517 250 -4267
+ Misses 517 77 -440 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
The command should not report anything that is exported directly or indirectly, so if you see anything publicly available - please let me know. |
Can someone from the team take a closer look? |
The current removal makes sense the way how it is, I'd approve if it's only that. Eg
This one makes sense and could be removed, I dont expect that to be called externally.
Will likely be used in the future once 1st class Fuchsia support lands. |
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.
Linter is complaining besides that LGTM.
I'll fix that and remove the mentioned
Sure 👍 , but now I'm curious about NoOpSentryClient - it's not referenced and not exported (or I don't see it), how you / your users use it? 🙂 |
That was before the sound null safety, now that Dart is fully sound null safety on v3, we can likely refactor all of that, but I'd rather do that on the next major version, some public APIs would return nullable values most likely, good observation. |
Hm, why are you mentioning nullsafety, when the report is about unused code? It's not about nullable parameters as you commented here #949 (comment). This one is another command. |
I was just answering your question about |
Ah, I see, thank you! I've updated the PR. |
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.
Thanks! LGTM
📜 Description
This PR removes some unused code.
#skip-changelog
💡 Motivation and Context
Hello! I'm one of the authors of DCM package and I'm currently testing new unused code check that also checks for methods, fields, etc.
I've noticed that you have an opened issue #949, so decide to submit this PR.
Here is full report for
dart/
folder:Here is full report for
flutter/
folder:Note: I've removed only some reported code, anything above is not touched. If you consider anything above worth removing, please let me know and I'll update the PR.
💚 How did you test it?
With
dcm
.📝 Checklist
sendDefaultPii
is enabled🔮 Next steps
Waiting for your feedback / comments 🙂.