From ec17255a430b36e543bd4845a8868a765993a0f9 Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Sat, 25 Nov 2017 14:21:29 -0500 Subject: [PATCH] Remove unneeded local variables The global variables have the same information; no need to look up the information again. --- .../java/protect/card_locker/LoyaltyCardViewActivity.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java index b1288df3f..a1fb19957 100644 --- a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java +++ b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java @@ -343,10 +343,6 @@ public class LoyaltyCardViewActivity extends AppCompatActivity @Override public boolean onCreateOptionsMenu(Menu menu) { - final Bundle b = getIntent().getExtras(); - final boolean updateLoyaltyCard = b != null && b.getBoolean("update", false); - final boolean viewLoyaltyCard = b != null && b.getBoolean("view", false); - if(viewLoyaltyCard) { getMenuInflater().inflate(R.menu.card_view_menu, menu); @@ -370,9 +366,6 @@ public class LoyaltyCardViewActivity extends AppCompatActivity { int id = item.getItemId(); - final Bundle b = getIntent().getExtras(); - final int loyaltyCardId = b != null ? b.getInt("id") : 0; - switch(id) { case android.R.id.home: