From 2c106ad9400d65b1370f803fb06a9eb60fa0f1a0 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 25 Jun 2013 10:29:37 -0400 Subject: [PATCH] remove unused variant of ResolveContext.resolve static method It was broken (ignored its restrictToChild parameter) but since it was also unused, just nuked it. --- .../main/java/com/typesafe/config/impl/ResolveContext.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/config/src/main/java/com/typesafe/config/impl/ResolveContext.java b/config/src/main/java/com/typesafe/config/impl/ResolveContext.java index a6858618..d7fe99bd 100644 --- a/config/src/main/java/com/typesafe/config/impl/ResolveContext.java +++ b/config/src/main/java/com/typesafe/config/impl/ResolveContext.java @@ -140,7 +140,7 @@ final class ResolveContext { } static AbstractConfigValue resolve(AbstractConfigValue value, AbstractConfigObject root, - ConfigResolveOptions options, Path restrictToChildOrNull) { + ConfigResolveOptions options) { ResolveContext context = new ResolveContext(root, options, null /* restrictToChild */); try { @@ -151,9 +151,4 @@ final class ResolveContext { "NotPossibleToResolve was thrown from an outermost resolve", e); } } - - static AbstractConfigValue resolve(AbstractConfigValue value, AbstractConfigObject root, - ConfigResolveOptions options) { - return resolve(value, root, options, null); - } }