Ignore:
Timestamp:
2011-03-02T17:44:35+01:00 (13 years ago)
Author:
stoecker
Message:

remove broken dead code

Location:
trunk/src/org/openstreetmap/josm/data/validation
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java

    r3923 r3944  
    6565    public ValidateAction validateAction = new ValidateAction();
    6666
    67     /** Grid detail, multiplier of east,north values for valuable cell sizing */
    68     public static double griddetail;
    69 
    7067    public static Collection<String> ignoredErrors = new TreeSet<String>();
    7168
     
    9996    public OsmValidator() {
    10097        checkValidatorDir();
    101         initializeGridDetail();
    10298        initializeTests(getTests());
    10399        loadIgnoredErrors(); //FIXME: load only when needed
     
    154150    public static void saveIgnoredErrors() {
    155151        try {
    156             final PrintWriter out = new PrintWriter(new FileWriter(getValidatorDir() + "ignorederrors"), false);
     152            final PrintWriter out = new PrintWriter(new FileWriter(getValidatorDir()
     153            + "ignorederrors"), false);
    157154            for (String e : ignoredErrors) {
    158155                out.println(e);
     
    163160        }
    164161    }
    165 
    166     private ValidateUploadHook uploadHook;
    167 
    168 //    public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
    169 //        if (newFrame != null) {
    170 //            initializeErrorLayer();
    171 //            if (Main.pref.hasKey(ValidatorPreference.PREF_DEBUG + ".grid"))
    172 //                Main.main.addLayer(new GridLayer(tr("Grid")));
    173 //        }
    174 //    }
    175162
    176163    public static void initializeErrorLayer() {
     
    245232
    246233    /**
    247      * Initialize grid details based on current projection system. Values based on
    248      * the original value fixed for EPSG:4326 (10000) using heuristics (that is, test&error
    249      * until most bugs were discovered while keeping the processing time reasonable)
    250      */
    251     public void initializeGridDetail() {
    252         if (Main.proj.toString().equals(new Epsg4326().toString())) {
    253             OsmValidator.griddetail = 10000;
    254         } else if (Main.proj.toString().equals(new Mercator().toString())) {
    255             OsmValidator.griddetail = 0.01;
    256         } else if (Main.proj.toString().equals(new Lambert().toString())) {
    257             OsmValidator.griddetail = 0.1;
    258         }
    259     }
    260 
    261     /**
    262234     * Initializes all tests
    263235     * @param allTests The tests to initialize
Note: See TracChangeset for help on using the changeset viewer.