Changeset 5108 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2012-03-20T11:27:08+01:00 (12 years ago)
Author:
xeen
Message:

remove superfluous calls to recalculateBounds() and add clarifying comment.

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java

    r4721 r5108  
    103103            if (rawData == null)
    104104                return;
    105             rawData.recalculateBounds();
    106105            String name = tr("Downloaded GPX Data");
    107106            GpxLayer layer = new GpxLayer(rawData, name);
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java

    r3119 r5108  
    8383    }
    8484
    85     // FIXME might perhaps use visitor pattern?
     85    /**
     86     * calculates the bounding box of available data and returns it.
     87     * The bounds are not stored internally, but recalculated every time
     88     * this function is called.
     89     *
     90     * FIXME might perhaps use visitor pattern?
     91     */
    8692    public Bounds recalculateBounds() {
    8793        Bounds bounds = null;
  • trunk/src/org/openstreetmap/josm/io/NmeaReader.java

    r4243 r5108  
    209209            currentTrack.add(ps.waypoints);
    210210            data.tracks.add(new ImmutableGpxTrack(currentTrack, Collections.<String, Object>emptyMap()));
    211             data.recalculateBounds();
    212211
    213212        } catch (final IOException e) {
Note: See TracChangeset for help on using the changeset viewer.