mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Android: Remove some unused code
This commit is contained in:
1 parent
e21eb294d0
commit
04a6166c90
5 files changed
+3
-9
No files matched your search
@@ -46,7 +46,6 @@ enum {
|
||||
|
||||
enum class LaunchUrlType {
|
||||
BROWSER_URL,
|
||||
MARKET_URL,
|
||||
EMAIL_ADDRESS,
|
||||
LOCAL_FILE,
|
||||
LOCAL_FOLDER, // Shows the folder. Not supported on all systems of course.
|
||||
|
||||
@@ -941,7 +941,6 @@ std::vector<std::string> System_GetCameraDeviceList() {
|
||||
void System_LaunchUrl(LaunchUrlType urlType, std::string_view url) {
|
||||
switch (urlType) {
|
||||
case LaunchUrlType::BROWSER_URL:
|
||||
case LaunchUrlType::MARKET_URL:
|
||||
{
|
||||
#if PPSSPP_PLATFORM(SWITCH)
|
||||
Uuid uuid = { 0 };
|
||||
|
||||
@@ -144,7 +144,6 @@ void System_LaunchUrl(LaunchUrlType urlType, std::string_view url) {
|
||||
case LaunchUrlType::BROWSER_URL:
|
||||
case LaunchUrlType::LOCAL_FILE:
|
||||
case LaunchUrlType::LOCAL_FOLDER:
|
||||
case LaunchUrlType::MARKET_URL:
|
||||
case LaunchUrlType::EMAIL_ADDRESS:
|
||||
// ShellExecute handles everything.
|
||||
{
|
||||
|
||||
@@ -283,7 +283,6 @@ void System_Vibrate(int length_ms) {
|
||||
void System_LaunchUrl(LaunchUrlType urlType, std::string_view url) {
|
||||
switch (urlType) {
|
||||
case LaunchUrlType::BROWSER_URL: PushCommand("launchBrowser", url); break;
|
||||
case LaunchUrlType::MARKET_URL: PushCommand("launchMarket", url); break;
|
||||
case LaunchUrlType::EMAIL_ADDRESS: PushCommand("launchEmail", url); break;
|
||||
// Can't really support the below well on Android...
|
||||
case LaunchUrlType::LOCAL_FOLDER: break;
|
||||
|
||||
@@ -1487,6 +1487,9 @@ public class PpssppActivity extends AppCompatActivity implements SensorEventList
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// Don't need a separate launchMarket, can just use launchBrowser with a market:
|
||||
// http://stackoverflow.com/questions/3442366/android-link-to-market-from-inside-another-app
|
||||
// http://developer.android.com/guide/publishing/publishing.html#marketintent
|
||||
try {
|
||||
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(params));
|
||||
startActivity(i);
|
||||
@@ -1591,11 +1594,6 @@ public class PpssppActivity extends AppCompatActivity implements SensorEventList
|
||||
Log.e(TAG, e.toString());
|
||||
return false;
|
||||
}
|
||||
} else if (command.equals("launchMarket")) {
|
||||
// Don't need this, can just use launchBrowser with a market:
|
||||
// http://stackoverflow.com/questions/3442366/android-link-to-market-from-inside-another-app
|
||||
// http://developer.android.com/guide/publishing/publishing.html#marketintent
|
||||
return false;
|
||||
} else if (command.equals("toast")) {
|
||||
Toast toast = Toast.makeText(this, params, Toast.LENGTH_LONG);
|
||||
toast.show();
|
||||
|
||||
Reference in new issue
Block a user