Skip to content

Commit

Permalink
* remove unused code, reported by PMD check.
Browse files Browse the repository at this point in the history
  • Loading branch information
hatyo committed Nov 29, 2022
1 parent 72f05c0 commit bc81a0b
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import javax.annotation.Nonnull;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;

/**
Expand All @@ -53,10 +52,6 @@
*/
public class InsertExpression implements RelationalExpressionWithChildren, PlannerGraphRewritable {

private static final String OLD_FIELD_NAME = "old";

private static final String NEW_FIELD_NAME = "new";

@Nonnull
private final Quantifier.ForEach inner;
@Nonnull
Expand Down Expand Up @@ -181,13 +176,6 @@ public PlannerGraph rewritePlannerGraph(@Nonnull final List<? extends PlannerGra
Iterables.getOnlyElement(childGraphs), graphForTarget);
}

@Nonnull
private static Type.Record computeResultType(@Nonnull final Type inType, @Nonnull final Type targetType) {
return Type.Record.fromFields(false,
ImmutableList.of(Type.Record.Field.of(inType, Optional.of(OLD_FIELD_NAME)),
Type.Record.Field.of(targetType, Optional.of(NEW_FIELD_NAME))));
}

@Nonnull
private static Value makeComputationValue(@Nonnull final Type targetType) {
return ObjectValue.of(RecordQueryAbstractDataModificationPlan.currentModifiedRecordAlias(), targetType);
Expand Down

0 comments on commit bc81a0b

Please sign in to comment.