forked from organicmaps/organicmaps
[android] Remove unused LocationListener.onLocationError()
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
parent
a2c3e31e26
commit
6b36cd2f6c
5 changed files with 0 additions and 23 deletions
|
@ -306,10 +306,6 @@ public enum LocationHelper implements Initializable<Context>, AppBackgroundTrack
|
|||
nativeOnLocationError(errCode);
|
||||
if (mUiCallback != null)
|
||||
mUiCallback.onLocationError(errCode);
|
||||
|
||||
for (LocationListener listener : mListeners)
|
||||
listener.onLocationError(errCode);
|
||||
mListeners.finishIterate();
|
||||
}
|
||||
|
||||
private void notifyMyPositionModeChanged(int newMode)
|
||||
|
|
|
@ -11,12 +11,8 @@ public interface LocationListener
|
|||
|
||||
@Override
|
||||
public void onCompassUpdated(long time, double north) {}
|
||||
|
||||
@Override
|
||||
public void onLocationError(int errorCode) {}
|
||||
}
|
||||
|
||||
void onLocationUpdated(Location location);
|
||||
void onCompassUpdated(long time, double north);
|
||||
void onLocationError(int errorCode);
|
||||
}
|
||||
|
|
|
@ -69,12 +69,6 @@ public class NavigationService extends Service
|
|||
updateNotification(routingInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLocationError(int errorCode)
|
||||
{
|
||||
Logger.e(TAG, "onLocationError() errorCode: " + errorCode);
|
||||
}
|
||||
};
|
||||
|
||||
public class LocalBinder extends Binder
|
||||
|
|
|
@ -135,7 +135,4 @@ public class DirectionFragment extends BaseMwmDialogFragment
|
|||
if (da.getAzimuth() >= 0)
|
||||
mAvDirection.setAzimuth(da.getAzimuth());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLocationError(int errorCode) {}
|
||||
}
|
||||
|
|
|
@ -257,12 +257,6 @@ public class RichPlacePageController implements PlacePageController, LocationLis
|
|||
mPlacePage.refreshAzimuth(north);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLocationError(int errorCode)
|
||||
{
|
||||
// Do nothing by default.
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSave(@NonNull Bundle outState)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue