Remove unnecessary returns

return is unnecessary as the last statement in a 'void' method
This commit is contained in:
Nelson A. de Oliveira 2013-08-03 00:30:19 -03:00
parent ca60148431
commit 45b43e4311
2 changed files with 2 additions and 5 deletions

View file

@ -621,8 +621,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
runMediaRecorder(mapActivity, mr, f);
} catch (Exception e) {
logErr(e);
return;
}
}
}
@Override
@ -654,8 +653,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
private void logErr(Exception e) {
log.error("Error starting recorder ", e);
AccessibleToast.makeText(app, app.getString(R.string.recording_error) + " : " + e.getMessage(), Toast.LENGTH_LONG).show();
return;
}
}
protected Camera openCamera() {
try {

View file

@ -281,7 +281,6 @@ class SuggestionsAdapter extends ResourceCursorAdapter implements OnClickListene
if (extras != null
&& extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS)) {
// mSearchView.getWindow().getDecorView().post(mStartSpinnerRunnable); // TODO:
return;
}
// If cursor is null or is done, stop the spinner
// mSearchView.getWindow().getDecorView().post(mStopSpinnerRunnable); // TODO: