Top "Dead-code" questions

Dead code is code in the source code of a program which is executed but whose result is never used or a code that can never be reached or used.

How to find unused/dead code in java projects

What tools do you use to find unused/dead code in large java projects? Our product has been in development …

java refactoring dead-code
How to disable unused code warnings in Rust?

struct SemanticDirection; fn main() {} warning: struct is never used: `SemanticDirection` --> src/main.rs:1:1 | 1 | struct SemanticDirection; | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(dead_…

warnings compiler-warnings rust dead-code
How find all unused classes in Intellij Idea?

There is an inspection "Unused declaration" which can find all unused code in Intellij Idea. (see this question) But I …

java intellij-idea dead-code
How can you tell if a PL/SQL Package, Procedure, or Function is being used?

How can you tell if a PL/SQL Package, Procedure, or Function is being used? Is there an Oracle table …

oracle plsql statistics dead-code
How can I know which parts in the code are never used?

I have legacy C++ code that I'm supposed to remove unused code from. The problem is that the code base …

c++ optimization dead-code
Dead code detection in legacy C/C++ project

How would you go about dead code detection in C/C++ code? I have a pretty large code base to …

c++ automation static-analysis legacy-code dead-code
find dead JavaScript code?

We are refactoring a legacy web app and as a result are "killing" quite a lot of JavaScript code but …

javascript refactoring dead-code
How to find dead code in a large react project?

In order to refactor a client-side project, i'm looking for a safe way to find (and delete) unused code. What …

javascript reactjs refactoring dead-code
Unreachable code error vs. dead code warning in Java under Eclipse?

Does anyone know why: public void foo() { System.out.println("Hello"); return; System.out.println("World!"); } Would be reported as …

java eclipse dead-code unreachable-code
How to remove dead code from Javascript

I am trying to remove unused functions from my project. Since it has thousands of lines, this takes forever. Code …

javascript dead-code