🟡 Redundant SpanManager require in editor.lua #10

Open xenolandscapes.com
Open opened by xenolandscapes.com

Summary #

src/cursed/editor.lua adds local SpanManager = require("cursed.span_manager") but SpanManager may no longer be used in that file.

The Problem #

After the refactoring, SpanManager is no longer referenced in editor.lua. The require is unnecessary and may cause a spurious warning if the module has side effects.

Impact #

  • maintainability: Unused require clutters the code.

Remove the require line if SpanManager is not used elsewhere in the file.

References #

770a16c4..770a16c4

Sign up or Sign in to add to the discussion.