Removed deprecated method Base.getLibraries()

This commit is contained in:
Cristian Maglie 2017-12-17 21:55:31 +01:00
parent 3ed68c5d71
commit 534d62653c
2 changed files with 1 additions and 6 deletions

View File

@ -1877,11 +1877,6 @@ public class Base {
getEditors().forEach(Editor::applyPreferences);
}
// XXX: Remove this method and make librariesIndexer non-static
static public LibraryList getLibraries() {
return BaseNoGui.librariesIndexer.getInstalledLibraries();
}
public List<JMenu> getBoardsCustomMenus() {
return boardsCustomMenus;
}

View File

@ -89,7 +89,7 @@ public class PdeKeywords {
File platformKeywords = new File(tp.getFolder(), "keywords.txt");
if (platformKeywords.exists()) parseKeywordsTxt(platformKeywords);
}
for (ContributedLibrary lib : Base.getLibraries()) {
for (ContributedLibrary lib : BaseNoGui.librariesIndexer.getInstalledLibraries()) {
File keywords = new File(lib.getInstalledFolder(), "keywords.txt");
if (keywords.exists()) {
parseKeywordsTxt(keywords);