Remove unused function

This commit is contained in:
Jeroen Engels 2020-06-28 13:44:52 +02:00
parent 260f34d743
commit aa72525032
2 changed files with 1 additions and 12 deletions

View File

@ -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

View File

@ -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