Remove unused code
This commit is contained in:
parent
2dfc0c2243
commit
274b16f667
@ -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);
|
||||||
|
@ -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 + "/");
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
@ -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) {
|
||||||
|
@ -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.
|
||||||
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -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>
|
|
Loading…
x
Reference in New Issue
Block a user