diff --git a/cdm/core/src/main/java/ucar/nc2/internal/ncml/NcmlReader.java b/cdm/core/src/main/java/ucar/nc2/internal/ncml/NcmlReader.java index b3b81d1ace..53fca741b7 100644 --- a/cdm/core/src/main/java/ucar/nc2/internal/ncml/NcmlReader.java +++ b/cdm/core/src/main/java/ucar/nc2/internal/ncml/NcmlReader.java @@ -831,9 +831,6 @@ private void readDim(Group.Builder groupBuilder, @Nullable Group refGroup, Eleme int len = isVariableLength ? Dimension.VLEN.getLength() : Integer.parseInt(lengthS); - if (debugConstruct) { - System.out.println(" add new dim = " + name); - } // LOOK change to replaceDimension to get fort.54 working. groupBuilder.replaceDimension(Dimension.builder().setName(name).setIsShared(isShared).setIsUnlimited(isUnlimited) .setIsVariableLength(isVariableLength).setLength(len).build()); @@ -864,10 +861,6 @@ private void readDim(Group.Builder groupBuilder, @Nullable Group refGroup, Eleme newDim.setLength(len); } - if (debugConstruct) { - System.out.println(" modify existing dim = " + name); - } - groupBuilder.removeDimension(name); groupBuilder.addDimension(newDim.build()); }