1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00

ContributedLibraryReleases: removed getLibrary() method

this method is now useless
This commit is contained in:
Cristian Maglie 2017-12-29 11:33:47 +01:00
parent 8c6e39735d
commit b03a9af19a
2 changed files with 2 additions and 6 deletions

View File

@ -44,8 +44,8 @@ public class ContributedLibraryReleasesComparator implements Comparator<Contribu
@Override @Override
public int compare(ContributedLibraryReleases o1, ContributedLibraryReleases o2) { public int compare(ContributedLibraryReleases o1, ContributedLibraryReleases o2) {
ContributedLibrary lib1 = o1.getLibrary(); ContributedLibrary lib1 = o1.getLatest();
ContributedLibrary lib2 = o2.getLibrary(); ContributedLibrary lib2 = o2.getLatest();
if (lib1.getTypes() == null || lib2.getTypes() == null) { if (lib1.getTypes() == null || lib2.getTypes() == null) {
return compareName(lib1, lib2); return compareName(lib1, lib2);

View File

@ -49,10 +49,6 @@ public class ContributedLibraryReleases {
add(library); add(library);
} }
public ContributedLibrary getLibrary() {
return latest;
}
public List<ContributedLibrary> getReleases() { public List<ContributedLibrary> getReleases() {
return releases; return releases;
} }