Remove unused code

This commit is contained in:
FearlessTobi 2020-03-29 22:19:56 +02:00 committed by bunnei
parent 2dfc0c2243
commit 274b16f667
8 changed files with 1 additions and 49 deletions

View File

@ -103,12 +103,6 @@ public final class EmulationActivity extends AppCompatActivity {
private boolean activityRecreated; private boolean activityRecreated;
private String mSelectedTitle; private String mSelectedTitle;
private String mPath; private String mPath;
private Runnable afterShowingScreenshot = new Runnable() {
@Override
public void run() {
supportFinishAfterTransition();
}
};
public static void launch(FragmentActivity activity, String path, String title) { public static void launch(FragmentActivity activity, String path, String title) {
Intent launcher = new Intent(activity, EmulationActivity.class); Intent launcher = new Intent(activity, EmulationActivity.class);

View File

@ -21,8 +21,6 @@ public final class GameProvider extends ContentProvider {
public static final String AUTHORITY = "content://" + BuildConfig.APPLICATION_ID + ".provider"; public static final String AUTHORITY = "content://" + BuildConfig.APPLICATION_ID + ".provider";
public static final Uri URI_FOLDER = public static final Uri URI_FOLDER =
Uri.parse(AUTHORITY + "/" + GameDatabase.TABLE_NAME_FOLDERS + "/"); Uri.parse(AUTHORITY + "/" + GameDatabase.TABLE_NAME_FOLDERS + "/");
public static final Uri URI_GAME =
Uri.parse(AUTHORITY + "/" + GameDatabase.TABLE_NAME_GAMES + "/");
public static final Uri URI_REFRESH = Uri.parse(AUTHORITY + "/" + REFRESH_LIBRARY + "/"); public static final Uri URI_REFRESH = Uri.parse(AUTHORITY + "/" + REFRESH_LIBRARY + "/");
public static final Uri URI_RESET = Uri.parse(AUTHORITY + "/" + RESET_LIBRARY + "/"); public static final Uri URI_RESET = Uri.parse(AUTHORITY + "/" + RESET_LIBRARY + "/");

View File

@ -673,7 +673,6 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener {
if (!mPreferences.getBoolean("OverlayInit", false)) { if (!mPreferences.getBoolean("OverlayInit", false)) {
// It's possible that a user has created their overlay before this was added // It's possible that a user has created their overlay before this was added
// Only change the overlay if the 'A' button is not in the upper corner. // Only change the overlay if the 'A' button is not in the upper corner.
// GameCube
if (mPreferences.getFloat(ButtonType.BUTTON_A + "-X", 0f) == 0f) { if (mPreferences.getFloat(ButtonType.BUTTON_A + "-X", 0f) == 0f) {
defaultOverlayLandscape(); defaultOverlayLandscape();
} }

View File

@ -190,11 +190,6 @@ public final class MainActivity extends AppCompatActivity implements MainView {
} }
} }
@Nullable
private PlatformGamesView getPlatformGamesView() {
return (PlatformGamesView) getSupportFragmentManager().findFragmentById(mFrameLayoutId);
}
@Override @Override
protected void onDestroy() { protected void onDestroy() {
EmulationActivity.tryDismissRunningNotification(this); EmulationActivity.tryDismissRunningNotification(this);

View File

@ -70,11 +70,6 @@ public final class PlatformGamesFragment extends Fragment implements PlatformGam
mPresenter.refresh(); mPresenter.refresh();
} }
@Override
public void onItemClick(String gameId) {
// No-op for now
}
@Override @Override
public void showGames(Cursor games) { public void showGames(Cursor games) {
if (mAdapter != null) { if (mAdapter != null) {

View File

@ -19,14 +19,6 @@ public interface PlatformGamesView {
*/ */
void refreshScreenshotAtPosition(int position); void refreshScreenshotAtPosition(int position);
/**
* Pass a click event to the view's Presenter. Typically called from the
* view's list adapter.
*
* @param gameId The ID of the game that was clicked.
*/
void onItemClick(String gameId);
/** /**
* To be called when an asynchronous database read completes. Passes the * To be called when an asynchronous database read completes. Passes the
* result, in this case a {@link Cursor}, to the view. * result, in this case a {@link Cursor}, to the view.

View File

@ -24,23 +24,4 @@ public final class SettingsFrameLayout extends FrameLayout {
public SettingsFrameLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { public SettingsFrameLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes); super(context, attrs, defStyleAttr, defStyleRes);
} }
public float getYFraction() {
return getY() / getHeight();
}
public void setYFraction(float yFraction) {
final int height = getHeight();
setY((height > 0) ? (yFraction * height) : -9999);
}
public float getVisibleness() {
return 1.0f;
}
public void setVisibleness(float visibleness) {
setScaleX(visibleness);
setScaleY(visibleness);
setAlpha(visibleness);
}
} }

View File

@ -1,4 +1,2 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" <menu></menu>
xmlns:app="http://schemas.android.com/apk/res-auto">
</menu>