src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Deletes a way
     * 
     * Removes it from any relations it is a member of
     * 
     * @param way way to delete
     */
Deletes a way

Removes it from any relations it is a member of

@param way way to delete
Deletes a way Removes it from any relations it is a member of @param way way to delete
public void removeWay(@NonNull final Way way) {
        dirty = true;
        undo.save(way);
        try {
            currentStorage.removeWay(way);
            if (apiStorage.contains(way)) {
                if (way.getState() == OsmElement.STATE_CREATED) {
                    apiStorage.removeElement(way);
                }
            } else {
                apiStorage.insertElementSafe(way);
            }
            removeElementFromRelations(way);
            way.updateState(OsmElement.STATE_DELETED);
            onElementChanged((List<OsmElement>) null, (List<OsmElement>) null);
        } catch (StorageException e) {
            Log.e(DEBUG_TAG, "removeWay got " + e.getMessage());
        }
    }
public void removeWay ( @ NonNull final Way way ) { dirty = true ; undo . save ( way ) ; try { currentStorage . removeWay ( way ) ; if ( apiStorage . contains ( way ) ) { if ( way . getState ( ) == OsmElement . STATE_CREATED ) { apiStorage . removeElement ( way ) ; } } else { apiStorage . insertElementSafe ( way ) ; } removeElementFromRelations ( way ) ; way . updateState ( OsmElement . STATE_DELETED ) ; onElementChanged ( ( List < OsmElement > ) null , ( List < OsmElement > ) null ) ; } catch ( StorageException e ) { Log . e ( DEBUG_TAG , "removeWay got " + e . getMessage ( ) ) ; } }
Deletes a way
Deletes a way
// TODO handle OOM