mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-23 17:53:35 +03:00
Remove unused function
This commit is contained in:
parent
260f34d743
commit
aa72525032
@ -108,7 +108,7 @@ I would love help with improving this :)
|
||||
rule : List { moduleName : String, typeName : String, index : Int } -> Rule
|
||||
rule phantomTypes =
|
||||
Rule.newProjectRuleSchema "NoUnused.CustomTypeConstructors" (initialProjectContext phantomTypes)
|
||||
|> Scope.addProjectVisitors_New
|
||||
|> Scope.addProjectVisitors
|
||||
|> Rule.withModuleVisitor moduleVisitor
|
||||
|> Rule.withModuleContext
|
||||
{ fromProjectToModule = fromProjectToModule
|
||||
|
@ -3,7 +3,6 @@ module Scope exposing
|
||||
, ProjectContext, addProjectVisitors
|
||||
, initialProjectContext, fromProjectToModule, fromModuleToProject, foldProjectContexts
|
||||
, moduleNameForValue, moduleNameForType
|
||||
, addProjectVisitors_New
|
||||
)
|
||||
|
||||
{-| Collect and infer information automatically for you
|
||||
@ -349,16 +348,6 @@ addProjectVisitors schema =
|
||||
|> Rule.withModuleVisitor internalAddModuleVisitors
|
||||
|
||||
|
||||
addProjectVisitors_New :
|
||||
Rule.ProjectRuleSchema { schemaState | canAddModuleVisitor : () } { projectContext | scope : ProjectContext } { moduleContext | scope : ModuleContext }
|
||||
-> Rule.ProjectRuleSchema { schemaState | canAddModuleVisitor : (), hasAtLeastOneVisitor : (), withModuleContext : Rule.Required } { projectContext | scope : ProjectContext } { moduleContext | scope : ModuleContext }
|
||||
addProjectVisitors_New schema =
|
||||
schema
|
||||
|> Rule.withContextFromImportedModules
|
||||
|> Rule.withDependenciesProjectVisitor (mapInnerProjectContext dependenciesProjectVisitor)
|
||||
|> Rule.withModuleVisitor internalAddModuleVisitors
|
||||
|
||||
|
||||
{-| Adds the scope visitors to your module rule.
|
||||
|
||||
Using `addModuleVisitors` requires your module context
|
||||
|
Loading…
Reference in New Issue
Block a user