Show
Ignore:
Timestamp:
08/19/08 05:43:00 (5 months ago)
Author:
Chuck.Esterbrook
Message:

Code cleanup.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/Boxes.cobra

    r1583 r1584  
    318318 
    319319                # eliminate duplicates 
    320                 # CC: suggs = List<of String>(Set<of String>(suggs)) 
    321                 d = Dictionary<of String, int>() 
    322                 for sugg in suggs 
    323                         d[sugg] = 1 
    324                 suggs = List<of String>(d.keys) 
    325                  
     320                suggs = List<of String>(Set<of String>(suggs)) 
    326321                suggs.sort 
    327322 
    328323                # okay to sort by alpha, but if a name differs only by case, put it up front 
    329324                lowerName = name.toLower 
    330                 for i = 0 .. suggs.count 
     325                for i in suggs.count 
    331326                        if suggs[i].toLower == lowerName 
    332327                                sugg = suggs[i]