Skip to content

Commit 4c3db34

Browse files
committed
refactor: delete unused code
1 parent 78988b2 commit 4c3db34

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

isthmus/src/main/java/io/substrait/isthmus/SubstraitToCalcite.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -229,29 +229,4 @@ private Pair<Integer, RelDataType> renameFields(
229229
return Pair.of(currentIndex, type);
230230
}
231231
}
232-
233-
private static class NamedStructGatherer extends RelCopyOnWriteVisitor<RuntimeException> {
234-
Map<List<String>, NamedStruct> tableMap;
235-
236-
private NamedStructGatherer() {
237-
super();
238-
this.tableMap = new HashMap<>();
239-
}
240-
241-
public static Map<List<String>, NamedStruct> gatherTables(Rel rel) {
242-
NamedStructGatherer visitor = new NamedStructGatherer();
243-
rel.accept(visitor, EmptyVisitationContext.INSTANCE);
244-
return visitor.tableMap;
245-
}
246-
247-
@Override
248-
public Optional<Rel> visit(NamedScan namedScan, EmptyVisitationContext context) {
249-
Optional<Rel> result = super.visit(namedScan, context);
250-
251-
List<String> tableName = namedScan.getNames();
252-
tableMap.put(tableName, namedScan.getInitialSchema());
253-
254-
return result;
255-
}
256-
}
257232
}

0 commit comments

Comments
 (0)