Index: applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationModel.java
===================================================================
--- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationModel.java	(revision 26816)
+++ applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationModel.java	(revision 26817)
@@ -48,5 +48,4 @@
 
 	private List<IElevationModelListener> listeners = new ArrayList<IElevationModelListener>();
-	private int numberOfWayPoints;
 
 	public ElevationModel() {
@@ -225,5 +224,4 @@
 		buffer.add(wp);
 		tmpWaypoints.add(wp);
-		numberOfWayPoints++;
 	}
 
Index: applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java
===================================================================
--- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java	(revision 26816)
+++ applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java	(revision 26817)
@@ -18,5 +18,4 @@
 import org.openstreetmap.josm.gui.IconToggleButton;
 import org.openstreetmap.josm.gui.MapFrame;
-import org.openstreetmap.josm.gui.MapView;
 import org.openstreetmap.josm.plugins.Plugin;
 import org.openstreetmap.josm.plugins.PluginInformation;
Index: applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileLayer.java
===================================================================
--- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileLayer.java	(revision 26816)
+++ applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileLayer.java	(revision 26817)
@@ -156,5 +156,4 @@
 		WayPoint lastWpt = null;
 		int lastEle = 0;
-		int index = 0;
 
 		renderer.beginRendering();
@@ -194,5 +193,4 @@
 				lastEle = (int) WayPointHelper.getElevation(wpt);
 				lastWpt = wpt;
-				index++;
 			}
 
