Ignore:
Timestamp:
2015-10-10T21:01:42+02:00 (6 years ago)
Author:
Don-vip
Message:

sonar - Unused private method should be removed
sonar - Unused protected methods should be removed
sonar - Sections of code should not be "commented out"
sonar - Empty statements should be removed
sonar - squid:S1172 - Unused method parameters should be removed
sonar - squid:S1481 - Unused local variables should be removed

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java

    r8840 r8855  
    7575            interrupt();
    7676            while (result == Result.WAITING) {
    77                 sleep(10); /* yield(); */
     77                sleep(10);
    7878            }
    7979            if (result == Result.FAILED)
     
    315315                                    long bytesToSkip = (long) (calibratedOffset /* seconds (double) */ * bytesPerSecond);
    316316                                    // skip doesn't seem to want to skip big chunks, so reduce it to smaller ones
    317                                     // audioInputStream.skip(bytesToSkip);
    318317                                    while (bytesToSkip > chunk) {
    319318                                        nBytesRead = audioInputStream.skip(chunk);
  • trunk/src/org/openstreetmap/josm/tools/Geometry.java

    r8510 r8855  
    344344        double a1 = p2.getY() - p1.getY();
    345345        double b1 = p1.getX() - p2.getX();
    346         // double c1 = 0;
    347346
    348347        double a2 = p4.getY() - p3.getY();
  • trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java

    r8846 r8855  
    140140     */
    141141    public static String getDisplayName(Locale locale) {
    142         /*String full = locale.toString();
    143         if ("ca__valencia".equals(full))
    144             return t_r_c("language", "Valencian");*/
    145 
    146142        return locale.getDisplayName();
    147143    }
  • trunk/src/org/openstreetmap/josm/tools/OverpassTurboQueryWizard.java

    r8744 r8855  
    4848        try (final Reader reader = new InputStreamReader(
    4949                getClass().getResourceAsStream("/data/overpass-turbo-ffs.js"), StandardCharsets.UTF_8)) {
    50             //engine.eval("var turbo = {ffs: {noPresets: true}};");
    5150            engine.eval("var console = {log: function(){}};");
    5251            engine.eval(reader);
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r8846 r8855  
    13031303     */
    13041304    public static ThreadFactory newThreadFactory(final String nameFormat, final int threadPriority) {
    1305         final String ignore = String.format(Locale.ENGLISH, nameFormat, 0); // fail fast
    13061305        return new ThreadFactory() {
    13071306            final AtomicLong count = new AtomicLong(0);
Note: See TracChangeset for help on using the changeset viewer.