From a1f4f135708d46db9a9f07feab361c9d8bc7a123 Mon Sep 17 00:00:00 2001 From: Luke Date: Fri, 10 May 2024 17:48:35 +0200 Subject: [PATCH] Delete unused function --- .../iurysouza/modulegraph/graph/DigraphBuilder.kt | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/plugin-build/modulegraph/src/main/kotlin/dev/iurysouza/modulegraph/graph/DigraphBuilder.kt b/plugin-build/modulegraph/src/main/kotlin/dev/iurysouza/modulegraph/graph/DigraphBuilder.kt index 1cf7e76..88289af 100644 --- a/plugin-build/modulegraph/src/main/kotlin/dev/iurysouza/modulegraph/graph/DigraphBuilder.kt +++ b/plugin-build/modulegraph/src/main/kotlin/dev/iurysouza/modulegraph/graph/DigraphBuilder.kt @@ -77,19 +77,6 @@ internal object DigraphBuilder { } } - private fun throwIfGraphEmpty(graphResult: GraphParseResult) { - val graphModel = graphResult.graph - val config = graphResult.config - if (graphModel.isEmpty()) { - error( - """ - |This graph is empty. - |It may be that the config is too restrictive: $config - """.trimMargin(), - ) - } - } - private fun verifySufficientGraph(graphResult: GraphParseResult) { val graphModel = graphResult.graph val config = graphResult.config