From 7a8b800ac2c0665720a7f15ab238e554a1960684 Mon Sep 17 00:00:00 2001 From: Jens Wille Date: Tue, 16 Nov 2021 11:34:02 +0100 Subject: [PATCH] Remove non-functional code for finding values in nested arrays. Seems to be currently unused and doesn't do what it's supposed to do. See https://github.com/metafacture/metafacture-fix/pull/60#discussion_r749422434. --- metafix/src/main/java/org/metafacture/metafix/FixMethod.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/metafix/src/main/java/org/metafacture/metafix/FixMethod.java b/metafix/src/main/java/org/metafacture/metafix/FixMethod.java index 5b29daf2..9fd636ea 100644 --- a/metafix/src/main/java/org/metafacture/metafix/FixMethod.java +++ b/metafix/src/main/java/org/metafacture/metafix/FixMethod.java @@ -317,9 +317,6 @@ private static Value findNested(final Value.Hash hash, final String currentField final Value nested = hash.get(currentField); // TODO: array of maps, like in insertNested - if (nested.isArray()) { - return Value.newArray(a -> nested.asArray().forEach(v -> a.add(findNested(hash, currentField, remainingFields)))); - } if (nested.isHash()) { return find(nested.asHash(), remainingFields);