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
0fb0a5a368
commit
53af68a551
@ -1319,7 +1319,7 @@ fromModuleRuleSchemaToRunnableModuleVisitor (ModuleRuleSchema schema) =
|
||||
let
|
||||
declarationAndExpressionVisitor : List (Node Declaration) -> ( List (Error {}), moduleContext ) -> ( List (Error {}), moduleContext )
|
||||
declarationAndExpressionVisitor =
|
||||
if shouldVisitDeclarationsAndExpressions2 schema then
|
||||
if shouldVisitDeclarationsAndExpressions schema then
|
||||
accumulateList
|
||||
(visitDeclaration
|
||||
(List.reverse schema.declarationVisitorsOnEnter)
|
||||
@ -4365,7 +4365,7 @@ visitModuleForProjectRule schema initialContext module_ =
|
||||
|> (\( errors, moduleContext ) -> ( makeFinalEvaluation schema.finalEvaluationFns ( errors, moduleContext ), moduleContext ))
|
||||
|
||||
|
||||
shouldVisitDeclarationsAndExpressions : RunnableModuleVisitor moduleContext -> Bool
|
||||
shouldVisitDeclarationsAndExpressions : ModuleRuleSchemaData moduleContext -> Bool
|
||||
shouldVisitDeclarationsAndExpressions schema =
|
||||
not (List.isEmpty schema.declarationVisitorsOnEnter)
|
||||
|| not (List.isEmpty schema.declarationVisitorsOnExit)
|
||||
@ -4377,18 +4377,6 @@ shouldVisitDeclarationsAndExpressions schema =
|
||||
|| not (List.isEmpty schema.caseBranchVisitorsOnExit)
|
||||
|
||||
|
||||
shouldVisitDeclarationsAndExpressions2 : ModuleRuleSchemaData moduleContext -> Bool
|
||||
shouldVisitDeclarationsAndExpressions2 schema =
|
||||
not (List.isEmpty schema.declarationVisitorsOnEnter)
|
||||
|| not (List.isEmpty schema.declarationVisitorsOnExit)
|
||||
|| not (List.isEmpty schema.expressionVisitorsOnEnter)
|
||||
|| not (List.isEmpty schema.expressionVisitorsOnExit)
|
||||
|| not (List.isEmpty schema.letDeclarationVisitorsOnEnter)
|
||||
|| not (List.isEmpty schema.letDeclarationVisitorsOnExit)
|
||||
|| not (List.isEmpty schema.caseBranchVisitorsOnEnter)
|
||||
|| not (List.isEmpty schema.caseBranchVisitorsOnExit)
|
||||
|
||||
|
||||
type alias ExpressionRelatedVisitors moduleContext =
|
||||
{ expressionVisitorsOnEnter : List (Visitor Expression moduleContext)
|
||||
, expressionVisitorsOnExit : List (Visitor Expression moduleContext)
|
||||
|
Loading…
Reference in New Issue
Block a user