@@ -13,7 +13,7 @@ public class Library extends LocalContribution {
1313 //protected File folder; // /path/to/shortname
1414 protected File libraryFolder ; // shortname/library
1515 protected File examplesFolder ; // shortname/examples
16- protected File referenceFile ; // shortname/reference/index.html is one possible path
16+ protected File referenceFile ; // shortname/reference/index.html
1717
1818 /**
1919 * Subfolder for grouping libraries in a menu. Basic subfolder support
@@ -212,8 +212,6 @@ private Library(File folder, String groupName) {
212212
213213 // get the path for all .jar files in this code folder
214214 packageList = Base .packageListFromClassPath (getClassPath ());
215-
216- referenceFile = loadReferenceIndexFile (folder );
217215 }
218216
219217
@@ -518,27 +516,6 @@ public ContributionType getType() {
518516 }
519517
520518
521- /**
522- * @param folder
523- * The file object representing the base folder of the contribution
524- * @return Returns a file object representing the index file of the reference
525- */
526- protected File loadReferenceIndexFile (File folder ) {
527- final String potentialFileList [] = {
528- "reference/index.html" , "reference/index.htm" ,
529- "documentation/index.html" , "documentation/index.htm" , "docs/index.html" ,
530- "docs/index.htm" , "documentation.html" , "documentation.htm" ,
531- "reference.html" , "reference.htm" , "docs.html" , "docs.htm" , "readme.txt" };
532-
533- int i = 0 ;
534- File potentialRef = new File (folder , potentialFileList [i ]);
535- while (!potentialRef .exists () && ++i < potentialFileList .length ) {
536- potentialRef = new File (folder , potentialFileList [i ]);
537- }
538- return potentialRef ;
539- }
540-
541-
542519 /**
543520 * Returns the object stored in the referenceFile field, which contains an
544521 * instance of the file object representing the index file of the reference
0 commit comments