ClassIncomplete

CWE-1164Irrelevant Code

Category: other

Description

The product contains code that is not essential for execution, i.e. makes no state changes and has no side effects that alter data or control flow, such that removal of the code would have no impact to functionality or correctness.

Common consequences· 2

  • Other — Reduce Reliability
  • Other — Reduce Performance

References

  1. https://cwe.mitre.org/data/definitions/1164.html

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Dead Code
CWE
Use of Prohibited Code
CWE
Incorrect Provision of Specified Functionality
CWE
Use of Potentially Dangerous Function
CWE
Inaccurate Source Code Comments
CWE
Reachable Assertion
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.