Skip to content

Commit a845564

Browse files
authored
chore: Remove unused require statements as picked up by the Elixir 1.20.0-rc.1 compiler (#356)
1 parent ae59c7d commit a845564

10 files changed

Lines changed: 0 additions & 14 deletions

File tree

lib/igniter/code/function.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ defmodule Igniter.Code.Function do
77
Utilities for working with functions.
88
"""
99

10-
require Igniter.Code.Common
11-
1210
alias Igniter.Code.Common
1311
alias Sourceror.Zipper
1412

lib/igniter/code/keyword.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ defmodule Igniter.Code.Keyword do
66
@moduledoc """
77
Utilities for working with keyword.
88
"""
9-
require Igniter.Code.Common
109
alias Igniter.Code.Common
1110
alias Sourceror.Zipper
1211

lib/igniter/code/module.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ defmodule Igniter.Code.Module do
88
alias Igniter.Code.Common
99
alias Sourceror.Zipper
1010

11-
require Logger
12-
1311
@doc "The module name prefix based on the mix project's module name"
1412
@deprecated "Use `Igniter.Project.Module.module_name_prefix/1` instead"
1513
@spec module_name_prefix() :: module()

lib/igniter/project/application.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
defmodule Igniter.Project.Application do
66
@moduledoc "Codemods and tools for working with Application modules."
77

8-
require Igniter.Code.Common
98
require Igniter.Code.Function
109

1110
alias Igniter.Code.Common

lib/igniter/project/config.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
defmodule Igniter.Project.Config do
66
@moduledoc "Codemods and utilities for modifying Elixir config files."
77

8-
require Igniter.Code.Function
98
alias Igniter.Code.Common
109
alias Sourceror.Zipper
1110

lib/igniter/project/deps.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
defmodule Igniter.Project.Deps do
66
@moduledoc "Codemods and utilities for managing dependencies declared in mix.exs"
7-
require Igniter.Code.Common
87
alias Igniter.Code.Common
98
alias Sourceror.Zipper
109

lib/igniter/project/module.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
defmodule Igniter.Project.Module do
66
@moduledoc "Codemods and utilities for interacting with modules"
77

8-
require Igniter.Code.Common
98
alias Igniter.Code.Common
109
alias Sourceror.Zipper
1110
require Logger

lib/igniter/upgrades/igniter.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ defmodule Igniter.Upgrades.Igniter do
66
@moduledoc false
77

88
alias Igniter.Code.Common
9-
alias Igniter.Code.Function
109
alias Igniter.Code.Module
1110
alias Sourceror.Zipper
1211

1312
require Common
14-
require Function
1513

1614
@doc """
1715
Rewrites deprecated `igniter/2` callback to `igniter/1` if the module

lib/igniter/util/info.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ defmodule Igniter.Util.Info do
2525

2626
@known_only_keys Keyword.keys(@known_only_options)
2727

28-
require Logger
2928
alias Igniter.Mix.Task.Info
3029

3130
def compose_install_and_validate!(

lib/mix/task.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ defmodule Igniter.Mix.Task do
2121
alias Igniter.Mix.Task.Args
2222
alias Igniter.Mix.Task.Info
2323

24-
require Logger
25-
2624
@doc """
2725
Whether or not it supports being run in the root of an umbrella project
2826

0 commit comments

Comments
 (0)