Skip to content

Dead code: components/Visualization/Graphvisualization.js is never imported #123

Description

@wrigjl

Summary

components/Visualization/Graphvisualization.js (default export Page) is not imported anywhere in the repository. A repo-wide, case-insensitive search for Graphvisualization returns only the file's own definition — no import sites.

Details

  • The component renders a <Graphviz dot=... options=... /> wrapper and also defines an unused graphTest DOT string constant and dead locals (let viz = "").
  • It dynamically imports ./GraphvizWrapper, so it is coupled to that wrapper, but nothing renders Page itself.

Why this matters

This appears to be orphaned/example code. Note it is the file recently refactored in #107 (graphviz-react → direct d3-graphviz wrapper) — worth confirming whether there's a live visualization path elsewhere, since the refactored component may not actually be reached at runtime.

Verification

grep -rni "graphvisualization" . --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=.next
# only matches components/Visualization/Graphvisualization.js itself

Suggested action

Confirm it is unused and remove it (and re-evaluate whether GraphvizWrapper / #107 has any live consumer), or wire it into the intended page if it was meant to be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions