Skip to content

Commit

Permalink
4.x: Remove unused method NativeUtil.findResources
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain1653 committed Dec 10, 2024
1 parent 4591886 commit 9ffec09
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@

package io.helidon.integrations.graal.nativeimage.extension;

import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
Expand All @@ -41,8 +39,6 @@
import io.github.classgraph.FieldInfo;
import io.github.classgraph.MethodParameterInfo;
import io.github.classgraph.ReferenceTypeSignature;
import io.github.classgraph.Resource;
import io.github.classgraph.ResourceList;
import io.github.classgraph.ScanResult;
import io.github.classgraph.TypeArgument;
import io.github.classgraph.TypeSignature;
Expand Down Expand Up @@ -269,21 +265,6 @@ public Set<Class<?>> findInterfaces(Class<?> aClass) {
return result;
}

List<String> findResources(String name) {
ResourceList allResources = scan.getResourcesWithPath(name);
List<String> list = new ArrayList<>();
for (Resource resource : allResources) {
String contentAsString = null;
try {
contentAsString = resource.getContentAsString();
} catch (IOException e) {
tracer.parsing(() -> "Failed to load resource " + resource.getPath(), e);
}
list.add(contentAsString);
}
return list;
}

void processAnnotatedFields(String annotation, BiConsumer<Class<?>, Field> fieldProcessor) {
InclusionFilter inclusionFilter = new InclusionFilter(tracer, exclusion, "field annotated by " + annotation);
ClassResolverMapper mapper = new ClassResolverMapper(tracer, classResolver, "field annotated by " + annotation);
Expand Down

0 comments on commit 9ffec09

Please sign in to comment.