[josm-dev] Last rites for OsmPrimitive.shown
    Gabriel Ebner 
    ge at gabrielebner.at
       
    Sun Dec 23 12:35:02 GMT 2007
    
    
  
Hello all,
After the recent discussion on core changes, I did take a look at
OsmPrimitive, and there's the following:
    /**
     * <code>true</code>, if the object has been shown. This property is not used
     * internally by JOSM, but can be used by plugins that take over the object
     * rendering.
     */
    public volatile boolean shown = false;
And that's the only place in all of JOSM and the plugins that it is ever
accessed (right, just written to, never read from):
        for (final OsmPrimitive osm : data.getSelected())
            if (!osm.incomplete && !osm.deleted){
                osm.shown=false; //to be sure it will be drawn
                osm.visit(this);
            }
Does anyone use this?  Else I'd like to remove it.
  Gabriel.
    
    
More information about the josm-dev
mailing list