Skip to content

Commit

Permalink
Remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel committed Oct 26, 2024
1 parent c250dfb commit 8bc2454
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions core/src/main/java/eu/ostrzyciel/jelly/core/NameDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public NameDecoder(int prefixTableSize, int nameTableSize, Function<String, TIri
this.iriFactory = iriFactory;
nameLookup = new Object[nameTableSize];
prefixLookup = new Object[prefixTableSize];
prefixTableEnabled = prefixTableSize > 0;

for (int i = 0; i < nameTableSize; i++) {
nameLookup[i] = new NameLookupEntry();
Expand All @@ -54,13 +53,8 @@ public void updateNames(RdfNameEntry nameEntry) {
@SuppressWarnings("unchecked")
NameLookupEntry entry = (NameLookupEntry) nameLookup[lastNameIdSet];
entry.name = nameEntry.value();
if (prefixTableEnabled) {
// Enough to invalidate the last IRI – we don't have to touch the other fields.
entry.lastPrefixId = 0;
} else {
// Prefix table is disabled, so we can compute the IRI here.
entry.lastIri = iriFactory.apply(entry.name);
}
// Enough to invalidate the last IRI – we don't have to touch the other fields.
entry.lastPrefixId = 0;
}

public void updatePrefixes(RdfPrefixEntry prefixEntry) {
Expand Down

0 comments on commit 8bc2454

Please sign in to comment.