From 97bfa6300de067dc552d29918162dbb3de2e80db Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 21 Aug 2013 21:10:23 -0400 Subject: [PATCH] Remove unused code from InputConfigFragment. This was for when the option to draw onscreen controls was in this menu instead of video preferences. --- .../inputconfig/InputConfigFragment.java | 32 +++---------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/inputconfig/InputConfigFragment.java b/Source/Android/src/org/dolphinemu/dolphinemu/inputconfig/InputConfigFragment.java index 420d5796fa..8686618c28 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/inputconfig/InputConfigFragment.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/inputconfig/InputConfigFragment.java @@ -90,33 +90,11 @@ public final class InputConfigFragment extends Fragment public void onItemClick(AdapterView parent, View view, int position, long id) { InputConfigItem o = adapter.getItem(position); - switch(position) - { - case 0: // On screen controls - String newBind; - if (o.getBind().equals("True")) - { - Toast.makeText(m_activity, getString(R.string.not_drawing_onscreen_controls), Toast.LENGTH_SHORT).show(); - newBind = "False"; - } - else - { - Toast.makeText(m_activity, getString(R.string.drawing_onscreen_controls), Toast.LENGTH_SHORT).show(); - newBind = "True"; - } - adapter.remove(o); - o.setBind(newBind); - adapter.insert(o, position); - break; - - default: // gamepad controls - - Toast.makeText(m_activity, getString(R.string.press_button_to_config, o.getName()), Toast.LENGTH_SHORT).show(); - configPosition = position; - Configuring = true; - firstEvent = true; - break; - } + + Toast.makeText(m_activity, getString(R.string.press_button_to_config, o.getName()), Toast.LENGTH_SHORT).show(); + configPosition = position; + Configuring = true; + firstEvent = true; } };