Changeset 7642


Ignore:
Timestamp:
2004-06-25T10:33:01+12:00 (20 years ago)
Author:
mdewsnip
Message:

Removed some dead functions and commented out a couple on their way out.

File:
1 edited

Legend:

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

    r7634 r7642  
    219219    }
    220220
    221     /* static private String encodeGreenstone(String raw) {
    222     raw = raw.replaceAll("<", "&lt;");
    223     raw = raw.replaceAll(">", "&gt;");
    224     raw = raw.replaceAll("\n", "\\\\n");
    225     return raw;
    226     } */
    227221
    228222    /** Using this method we can request that a certain document be written, as valid XML, to a certain output stream. This makes use of the Xerces Serialization suite, which should in no way be confused with the usual method of Serialization used by Java. */
     
    534528    }
    535529
    536     /** Retrieves and formats the depth field of the config file to four characters.
    537      * @param length The length of the desired string as an <i>int</i>.
    538      * @return A <strong>String</strong> representation of the mirroring depth padded to length characters.
    539      */
    540     /* private static String getDepthString(int length) {
    541     return pad("" + Gatherer.self.config.getInt("mirroring.depth", false), length);
    542     } */
     530
    543531    /** Method which constructs the etc directory given a certain collection.
    544532     * @param col_dir The location of the collection directory as a <strong>String</strong>.
     
    660648    }
    661649
    662    
    663     /* static private File getRecycleDirectory() {
    664     return new File(RECYCLE);
    665     } */
    666 
    667650
    668651    static public String getSitesDir(String gsdl3_path) {
     
    675658     * @return An <i>int</i> representing the value of the hexidecimal character or -1 if not a hexidecimal.
    676659     */
    677     static private int hexidecimal(char chr) {
    678     switch(chr) {
    679     case '0':
    680         return 0;
    681     case '1':
    682         return 1;
    683     case '2':
    684         return 2;
    685     case '3':
    686         return 3;
    687     case '4':
    688         return 4;
    689     case '5':
    690         return 5;
    691     case '6':
    692         return 6;
    693     case '7':
    694         return 7;
    695     case '8':
    696         return 8;
    697     case '9':
    698         return 9;
    699     case 'A':
    700         return 10;
    701     case 'B':
    702         return 11;
    703     case 'C':
    704         return 12;
    705     case 'D':
    706         return 13;
    707     case 'E':
    708         return 14;
    709     case 'F':
    710         return 15;
    711     default:
    712         return -1;
    713     }
    714     }
     660//      static private int hexidecimal(char chr) {
     661//      switch(chr) {
     662//      case '0':
     663//          return 0;
     664//      case '1':
     665//          return 1;
     666//      case '2':
     667//          return 2;
     668//      case '3':
     669//          return 3;
     670//      case '4':
     671//          return 4;
     672//      case '5':
     673//          return 5;
     674//      case '6':
     675//          return 6;
     676//      case '7':
     677//          return 7;
     678//      case '8':
     679//          return 8;
     680//      case '9':
     681//          return 9;
     682//      case 'A':
     683//          return 10;
     684//      case 'B':
     685//          return 11;
     686//      case 'C':
     687//          return 12;
     688//      case 'D':
     689//          return 13;
     690//      case 'E':
     691//          return 14;
     692//      case 'F':
     693//          return 15;
     694//      default:
     695//          return -1;
     696//      }
     697//      }
    715698
    716699    /** A string is a valid hierarchy index if it matches '[0-9](\.[0-9])*' */
     
    866849     * @return The newly justified <strong>String</strong>.
    867850     */
    868     static public String space(String original, int width, int current_width) {
     851    static private String space(String original, int width, int current_width) {
    869852    // Strip trailing whitespace.
    870853    while(original.charAt(original.length() - 1) == ' ') {
Note: See TracChangeset for help on using the changeset viewer.