Skip to content

Commit 3710914

Browse files
committed
chore: remove unused code
1 parent 7ad79b0 commit 3710914

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

utils/src/main/java/org/owasp/dependencycheck/utils/FileUtils.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import java.nio.file.Files;
2828
import java.nio.file.Path;
2929
import java.util.Comparator;
30-
import java.util.Iterator;
3130
import java.util.UUID;
3231
import java.util.stream.Stream;
3332

@@ -174,20 +173,6 @@ public static InputStream getResourceAsStream(@NotNull String resource) throws F
174173
return inputStream;
175174
}
176175

177-
178-
/** Gets the {@link java.util.Iterator<java.net.URL>} for this resource
179-
*
180-
* @param resource path
181-
* @return iterator of each resource URL
182-
* @throws IOException if I/O error occurs
183-
*/
184-
public static Iterator<URL> getResources(@NotNull String resource) throws IOException {
185-
final ClassLoader classLoader = FileUtils.class.getClassLoader();
186-
return classLoader != null
187-
? classLoader.getResources(resource).asIterator()
188-
: ClassLoader.getSystemResources(resource).asIterator();
189-
}
190-
191176
/**
192177
* Returns a File object for the given resource. The resource is attempted
193178
* to be loaded from the class loader.

0 commit comments

Comments
 (0)