Changeset 94


Ignore:
Timestamp:
May 2, 2003, 7:55:33 PM (19 years ago)
Author:
kake
Message:

Took out un-used code left over from usemod version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/supersearch.cgi

    r93 r94  
    9393}
    9494
    95 ###!!!!! load_wiki_text -UseMod version commented out.
    96 #
    97 # sub load_wiki_text is used to load the entire wiki into global hash %wikitext. This is a
    98 # performance hit everytime the search is used. Looks OK for small wikis. Could replace
    99 # this sub with something that makes %wikitext persistent, using a tied hash - issue of when
    100 # to reload comes up.
    101 #
    102 # Note: uses File::Spec routines so as to be fully portable. Works on Windoze, should work on
    103 # Unix just as well. Uses the patent Perlmonks superslurper trick.
    104 
    105 #sub load_wiki_text {
    106 #
    107 ## glob for topics
    108 #
    109 #       my $wikiglob = catdir($wikiroot,'page','*','*.db');
    110 #       
    111 #       for (glob $wikiglob) {
    112 #               my ($dev,$dir,$term) = splitpath($_);
    113 #               
    114 #               $term =~ s/\.db//;
    115 #               readpage($term,$_);
    116 #       }
    117 #
    118 ## glob for subtopics
    119 #
    120 #       $wikiglob = catdir($wikiroot,'page','*','*','*.db');
    121 #               
    122 #       for (glob $wikiglob) {
    123 #               my ($dev,$dir,$term) = splitpath($_);
    124 #               my @sd = splitdir($dir);
    125 #
    126 #               $term =~ s/\.db//;
    127 #               $term = $sd[-2].'/'.$term;
    128 #               readpage($term,$_);
    129 #       }
    130 #}
    131 
    13295sub load_wiki_text {
    13396
Note: See TracChangeset for help on using the changeset viewer.