Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoMakarevich committed Jun 18, 2024
1 parent 4e0ba2e commit 529cf1a
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ public ReadContext init(Configuration configuration, Map<String, String> keyValu
adjustConfToReadWithFileProduceMode(legacyMode, configuration);
ReadContext readContext = super.init(configuration, keyValueMetaData, fileSchema);
MessageType requestedSchema = readContext.getRequestedSchema();
// support non-legacy map. Convert non-legacy map to legacy map
// Because there is no AvroWriteSupport.WRITE_OLD_MAP_STRUCTURE
// according to AvroWriteSupport.WRITE_OLD_LIST_STRUCTURE
if (!legacyMode) {
requestedSchema = new MessageType(requestedSchema.getName(), convertLegacyMap(requestedSchema.getFields()));
}
return new ReadContext(requestedSchema, readContext.getReadSupportMetadata());
}

Expand Down

0 comments on commit 529cf1a

Please sign in to comment.