@@ -59,7 +59,6 @@ public class LibrariesIndexer {
59
59
60
60
private LibrariesIndex index ;
61
61
private final LibraryList installedLibraries = new LibraryList ();
62
- private final LibraryList installedLibrariesWithDuplicates = new LibraryList ();
63
62
private List <File > librariesFolders ;
64
63
private final File indexFile ;
65
64
private final File stagingFolder ;
@@ -113,7 +112,6 @@ public List<File> getLibrariesFolders() {
113
112
public void rescanLibraries () {
114
113
// Clear all installed flags
115
114
installedLibraries .clear ();
116
- installedLibrariesWithDuplicates .clear ();
117
115
118
116
if (index .getLibraries () == null ) {
119
117
return ;
@@ -180,11 +178,6 @@ private void scanLibrary(File folder, boolean isSketchbook) throws IOException {
180
178
throw new IOException (lib .getSrcFolder ().getAbsolutePath ());
181
179
}
182
180
installedLibraries .addOrReplace (lib );
183
- if (isSketchbook ) {
184
- installedLibrariesWithDuplicates .add (lib );
185
- } else {
186
- installedLibrariesWithDuplicates .addOrReplace (lib );
187
- }
188
181
return ;
189
182
}
190
183
@@ -196,11 +189,6 @@ private void scanLibrary(File folder, boolean isSketchbook) throws IOException {
196
189
throw new IOException (lib .getSrcFolder ().getAbsolutePath ());
197
190
}
198
191
installedLibraries .addOrReplaceArchAware (lib );
199
- if (isSketchbook ) {
200
- installedLibrariesWithDuplicates .add (lib );
201
- } else {
202
- installedLibrariesWithDuplicates .addOrReplaceArchAware (lib );
203
- }
204
192
205
193
// Check if we can find the same library in the index
206
194
// and mark it as installed
@@ -229,15 +217,6 @@ public LibraryList getInstalledLibraries() {
229
217
return new LibraryList (installedLibraries );
230
218
}
231
219
232
- // Same as getInstalledLibraries(), but allow duplicates between
233
- // builtin+package libraries and sketchbook installed libraries.
234
- // However, do not report duplicates among builtin and packages, to
235
- // allow any package to override builtin libraries without being
236
- // reported as duplicates.
237
- public LibraryList getInstalledLibrariesWithDuplicates () {
238
- return installedLibrariesWithDuplicates ;
239
- }
240
-
241
220
public File getStagingFolder () {
242
221
return stagingFolder ;
243
222
}
0 commit comments