question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove unneeded constants

See original GitHub issue

We used constants.ENABLE_ACCOUNT_DELETION and constants.ENABLE_ACCOUNT_EXPORT while we were implementing the deletion and export features. Right now these constants are always set to true and no longer needed, thus they can be fully removed from the codebase.

Steps to work on this issue:

  1. Pick one of the constants.
  2. Search the constant in the codebase and remove it from everywhere.
  3. Make sure that all tests are passing.
  • constants.ENABLE_ACCOUNT_DELETION
  • constants.ENABLE_ACCOUNT_EXPORT

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
AdityaKG-169commented, Oct 31, 2021

Hi @vojtechjelinek! I see it has been plenty of time since the issue was opened and is not closed yet.

If there’s anything available to work on, I’d love to. Thanks.

1reaction
KarishmaVanwaricommented, Oct 25, 2021

Is there any task open in this issue? @vojtechjelinek

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove the unused constants from the generated Java ...
and if there's a way to restrict constants only to compile time and have them removed after the class file is generated. java....
Read more >
Removing Unused Variables Is Good - Exakat
My favorite code clean is removing unused variables. This is right : variables that are hosted in the code, yet doing nothing.
Read more >
Unused local constant - Visual Basic - Microsoft Learn
A local constant has been declared that is not used anywhere in your code. Error ID: BC42099. To remove this warning. This error...
Read more >
4.4 Dropping unneeded variables | Data Wrangling Essentials
We will use loc[] to keep all the variables except the obs_num . air_accidents. · The drop() method will drop variables from a...
Read more >
DAT-04: Remove unused variables and code - MySQL Stored ...
This is a relatively straightforward process for variables and named constants. Simply execute searches for a variable's name in that variable's scope. If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found