Changeset 9646


Ignore:
Timestamp:
2005-04-12T12:24:20+12:00 (19 years ago)
Author:
mdewsnip
Message:

Removed an unused function containing a lot of weird hard-wired scms URLs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/WGet.java

    r8240 r9646  
    107107    }
    108108
    109     /* Whenever files are moved into or out of the collection we need to
    110      * run convertLinks on the files remaining. This ensures that we have
    111      * the most efficient balance between local and absolute links.
    112      * @param records A <strong>Vector</strong> containing information about the files in
    113      * the current collection. From these url and file information is
    114      * harvested.
    115      */
    116     /* private void convertLinks() {
    117     Vector args = new Vector();
    118     Vector files = new Vector();
    119     Vector urls = new Vector();
    120     // Args - there ain't many
    121     args.add("-d");
    122     args.add("-o");
    123     args.add("debug.txt");
    124     args.add("-P");
    125     args.add("/tmp/"); */
    126 
    127     // Downloaded urls (two entries for each record). The pattern here is:
    128     // local file
    129     // original url of file
    130     /*
    131       for(Enumeration e = records.elements(); e.hasMoreElements();) {
    132       urls.add(((GURL)e).getLocalName());
    133       urls.add(((GURL)e).getURL());
    134       }
    135     */
    136     //urls.add("/tmp//www.cs.waikato.ac.nz/index.html");
    137     //urls.add("http://www.cs.waikato.ac.nz/index.html");
    138     //urls.add("/tmp//www.cs.waikato.ac.nz/events.html");
    139     //urls.add("http://www.cs.waikato.ac.nz/events.html");
    140     //urls.add("/tmp//www.cs.waikato.ac.nz/history.html");
    141     //urls.add("http://www.cs.waikato.ac.nz/history.html");
    142     //urls.add("/tmp//www.cs.waikato.ac.nz/icons/cs_title_logo.gif");
    143     //urls.add("http://www.cs.waikato.ac.nz/icons/cs_title_logo.gif");
    144     //urls.add("/tmp//www.cs.waikato.ac.nz/icons/scms_title_logo.gif");
    145     //urls.add("http://www.cs.waikato.ac.nz/icons/scms_title_logo.gif");
    146 
    147     // Downloaded files (html only). We race back through our records
    148     // looking for html/text content ones.
    149     /*
    150       for(Enumeration e = records.elements(); e.hasMoreElements(); ) {
    151       GURL record = (GURL)e;
    152       if(record.isHTML()) {
    153       files.add(record.getLocalName());
    154       }
    155       }
    156     */
    157     //files.add("/tmp//www.cs.waikato.ac.nz/index.html");
    158 
    159     //wren(args.size(), args.toArray(), urls.size(), urls.toArray(),
    160     //      files.size(), files.toArray());
    161     /* } */
    162109
    163110    /** This method is called to delete a certain job from the queue.
Note: See TracChangeset for help on using the changeset viewer.