Skip to content

Commit b03a9af

Browse files
committed
ContributedLibraryReleases: removed getLibrary() method
this method is now useless
1 parent 8c6e397 commit b03a9af

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Diff for: app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryReleasesComparator.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public ContributedLibraryReleasesComparator(String firstType) {
4444

4545
@Override
4646
public int compare(ContributedLibraryReleases o1, ContributedLibraryReleases o2) {
47-
ContributedLibrary lib1 = o1.getLibrary();
48-
ContributedLibrary lib2 = o2.getLibrary();
47+
ContributedLibrary lib1 = o1.getLatest();
48+
ContributedLibrary lib2 = o2.getLatest();
4949

5050
if (lib1.getTypes() == null || lib2.getTypes() == null) {
5151
return compareName(lib1, lib2);

Diff for: arduino-core/src/cc/arduino/contributions/libraries/ContributedLibraryReleases.java

-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ public ContributedLibraryReleases(ContributedLibrary library) {
4949
add(library);
5050
}
5151

52-
public ContributedLibrary getLibrary() {
53-
return latest;
54-
}
55-
5652
public List<ContributedLibrary> getReleases() {
5753
return releases;
5854
}

0 commit comments

Comments
 (0)