Skip to content

copilot-core: Remove module Copilot.Core.PrettyDot #409

@ivanperez-keera

Description

@ivanperez-keera

Description

The module Copilot.Core.PrettyDot is not being used by any other part of Copilot.

It was deprecated in Copilot 3.11 and no messages have been received requesting that it be kept in the implementation.

As per our internal policy of waiting 3 versions from deprecation until a public interface declaration can be removed, this module can now be removed.

Type

  • Bug: unused code included in the implementation.

Additional context

Requester

  • Ivan Perez

Method to check presence of bug

The following expression finds uses of Copilot.Core.PrettyDot, ignoring appearances in comments or strings.

$ grep -nHre '\<Copilot.Core.PrettyDot\>' --include='*.hs' | grep -ve '^{-#' | grep -ve '--.*Copilot.Core.PrettyDot' | grep -ve '"[^"]*Copilot.Core.PrettyDot[^"]*"'
copilot-core/src/Copilot/Core/PrettyDot.hs:8:module Copilot.Core.PrettyDot

The result obtained is just the module. There are no uses elsewhere.

Expected result

The string returned by the command above should be empty (module is not present) or list further uses. If the former, attempting to import Copilot.Core.PrettyDot, or any entities previously defined in it, should result in an error.

Desired result

The string returned by the command above should be empty. Attempting to import Copilot.Core.PrettyDot, or any entities previously defined in it, should result in an error.

Proposed solution

Remove the module Copilot.Core.PrettyDot.

Review the dependencies in case some are no longer needed.

Further notes

None.

Metadata

Metadata

Assignees

Labels

CR:Status:ClosedAdmin only: Change request that has been completedCR:Type:BugAdmin only: Change request pertaining to error detected

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions