Skip to content

Commit 0bee69d

Browse files
committed
[lint] Stop storing unused applicationContext
1 parent 8e2641a commit 0bee69d

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

paystack/src/main/java/co/paystack/android/PaystackSdk.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public final class PaystackSdk {
3636
* Reference to the public key
3737
*/
3838
private static volatile String publicKey;
39-
private static Context applicationContext;
4039

4140
/**
4241
* Initialize PaystackSdk with a callback when has been initilized successfully.
@@ -62,8 +61,6 @@ public static synchronized void initialize(Context applicationContext, SdkInitia
6261
//load data from PaystackSdk
6362
PaystackSdk.loadFromManifest(applicationContext);
6463

65-
PaystackSdk.applicationContext = applicationContext;
66-
6764
sdkInitialized = true;
6865

6966
if (initializeCallback != null) {
@@ -112,10 +109,6 @@ public static void setPublishableKey(String publicKey) {
112109
PaystackSdk.publicKey = publicKey;
113110
}
114111

115-
public static Context getApplicationContext() {
116-
return applicationContext;
117-
}
118-
119112
private static void loadFromManifest(Context context) {
120113
if (context == null) {
121114
return;

0 commit comments

Comments
 (0)