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 String mSelectedTitle;
private String mPath;
private Runnable afterShowingScreenshot = new Runnable() {
@Override
public void run() {
supportFinishAfterTransition();
}
};
public static void launch(FragmentActivity activity, String path, String title) {
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 Uri URI_FOLDER =
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_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)) {
// 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.
// GameCube
if (mPreferences.getFloat(ButtonType.BUTTON_A + "-X", 0f) == 0f) {
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
protected void onDestroy() {
EmulationActivity.tryDismissRunningNotification(this);

View File

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

View File

@ -19,14 +19,6 @@ public interface PlatformGamesView {
*/
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
* 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) {
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"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
</menu>
<menu></menu>