Skip to content

Commit 20bc297

Browse files
committed
Removed LibraryWithName predicate
1 parent 43c2268 commit 20bc297

File tree

2 files changed

+3
-52
lines changed

2 files changed

+3
-52
lines changed

arduino-core/src/cc/arduino/contributions/libraries/LibrariesIndex.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
import java.util.Optional;
3838
import java.util.stream.Collectors;
3939

40-
import cc.arduino.contributions.libraries.filters.LibraryWithNamePredicate;
41-
4240
public abstract class LibrariesIndex {
4341

4442
public abstract List<ContributedLibrary> getLibraries();
4543

4644
public List<ContributedLibrary> find(final String name) {
47-
return getLibraries().stream().filter(new LibraryWithNamePredicate(name)).collect(Collectors.toList());
45+
return getLibraries().stream() //
46+
.filter(l -> name.equals(l.getName())) //
47+
.collect(Collectors.toList());
4848
}
4949

5050
public ContributedLibrary find(String name, String version) {

arduino-core/src/cc/arduino/contributions/libraries/filters/LibraryWithNamePredicate.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)