Unused methods not greying-out when not referenced.
See original GitHub issueThe method is local to the library, if it’s not used, it should have greyed-out as it used to do. I tried restarting the IntelliJ Idea but nothing changed.
Flutter doctor:
[✓] Flutter (Channel dev, 1.24.0-10.2.pre, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[!] Xcode - develop for iOS and macOS (Xcode 12.0.1)
! CocoaPods 1.8.4 out of date (1.9.0 is recommended).
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Community Edition (version 2020.2.3)
[✓] VS Code (version 1.49.0)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
IntelliJ IDEA greys out some unused methods but not all
In this class, it only greys out getReason() . It makes sense that it does not grey out the constructor or the fields....
Read more >VS 2017 C# editor does not grey or fade out unused variables ...
1. Previously, unused local variables are automatically greyed out. Now, this only works when variable declaration and definitons are separate. For example: int ......
Read more >Gray names for unused functions (using solution-wide-analysis)
In the 4.5 beta, using solution-wide analysis, public methods that were unused in the solution showed up with grayed out names (the same...
Read more >Finding Unused methods - MSDN - Microsoft
If your requirement is not met with Resharper, then only option I can see is go to each method, right click on it,...
Read more >Quick Tip - Remove Unused Using References in Visual Studio
First is putting your cursor on one of the grayed out lines and clicking the light bulb, then clicking Remove Unnecessary Usings. (NOTE:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Haha, np. Thanks for closing.
On Fri, Dec 4, 2020, 9:24 PM Dark Chocolate notifications@github.com wrote:
@stevemessick Sincere apologies. I just found that I was using:
Actually my original file had around 700 lines of code, so I didn’t notice that line when creating a new
Foo
class for your reference.