aboutsummaryrefslogtreecommitdiffstats
path: root/OpenPGP-Keychain/src/org/sufficientlysecure/keychain
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2013-09-15 16:49:38 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2013-09-15 16:49:38 +0200
commit0705060eaf49fc18a76eb7ca5a96d0b3bdf60702 (patch)
treeb71baf70f386c0fc31cfb8fe0b3f5b961cf9bc75 /OpenPGP-Keychain/src/org/sufficientlysecure/keychain
parent93b460a289ae1dde7baa2512010e3db6433fe505 (diff)
downloadopen-keychain-0705060eaf49fc18a76eb7ca5a96d0b3bdf60702.tar.gz
open-keychain-0705060eaf49fc18a76eb7ca5a96d0b3bdf60702.tar.bz2
open-keychain-0705060eaf49fc18a76eb7ca5a96d0b3bdf60702.zip
remove unused code
Diffstat (limited to 'OpenPGP-Keychain/src/org/sufficientlysecure/keychain')
-rw-r--r--OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/OtherHelper.java50
-rw-r--r--OpenPGP-Keychain/src/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java1
2 files changed, 0 insertions, 51 deletions
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/OtherHelper.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/OtherHelper.java
index 24e687897..8fa2df1f5 100644
--- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/OtherHelper.java
+++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/OtherHelper.java
@@ -25,8 +25,6 @@ import java.util.Set;
import org.sufficientlysecure.keychain.Constants;
import org.sufficientlysecure.keychain.util.Log;
-import android.app.Activity;
-import android.content.pm.PackageManager;
import android.os.Bundle;
public class OtherHelper {
@@ -82,54 +80,6 @@ public class OtherHelper {
}
/**
- * Check if the calling package has the needed permission to invoke an intent with specific
- * restricted actions.
- *
- * If pkgName is null, this will also deny the use of the given action
- *
- * @param activity
- * @param pkgName
- * @param permName
- * @param action
- * @param restrictedActions
- */
- public static void checkPackagePermissionForActions(Activity activity, String pkgName,
- String permName, String action, String[] restrictedActions) {
- if (action != null) {
- PackageManager pkgManager = activity.getPackageManager();
-
- for (int i = 0; i < restrictedActions.length; i++) {
- if (restrictedActions[i].equals(action)) {
-
- // TODO: currently always cancels! THis is the old API
- // end activity
- activity.setResult(Activity.RESULT_CANCELED, null);
- activity.finish();
-
- // if (pkgName != null
- // && (pkgManager.checkPermission(permName, pkgName) ==
- // PackageManager.PERMISSION_GRANTED || pkgName
- // .equals(Constants.PACKAGE_NAME))) {
- // Log.d(Constants.TAG, pkgName + " has permission " + permName + ". Action "
- // + action + " was granted!");
- // } else {
- // String error = pkgName + " does NOT have permission " + permName
- // + ". Action " + action + " was NOT granted!";
- // Log.e(Constants.TAG, error);
- // Toast.makeText(activity, activity.getString(R.string.errorMessage, error),
- // Toast.LENGTH_LONG).show();
- //
- // // end activity
- // activity.setResult(Activity.RESULT_CANCELED, null);
- // activity.finish();
- // }
- }
- }
-
- }
- }
-
- /**
* Splits userId string into naming part and email part
*
* @param userId
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java
index 1ef5060ca..0a1227a59 100644
--- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java
+++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java
@@ -106,7 +106,6 @@ public class PgpKeyOperation {
* PGPSecretKeyRing contains the masterkey and the new key as a subkey (certified by the
* masterkey).
*
- * @param context
* @param algorithmChoice
* @param keySize
* @param passPhrase