From 0ced8746af6f2f0b61a489d2fe56a1cb0e6f2d54 Mon Sep 17 00:00:00 2001 From: cketti Date: Mon, 20 Oct 2014 20:04:55 -0400 Subject: [PATCH] Remove old/unused code from click handler --- src/com/fsck/k9/fragment/MessageViewFragment.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/com/fsck/k9/fragment/MessageViewFragment.java b/src/com/fsck/k9/fragment/MessageViewFragment.java index 5f267bb64..c267797b1 100644 --- a/src/com/fsck/k9/fragment/MessageViewFragment.java +++ b/src/com/fsck/k9/fragment/MessageViewFragment.java @@ -503,15 +503,8 @@ public class MessageViewFragment extends Fragment implements OnClickListener, @Override public void onClick(View view) { - switch (view.getId()) { - case R.id.download: { - ((AttachmentView)view).saveFile(); - break; - } - case R.id.download_remainder: { - onDownloadRemainder(); - break; - } + if (view.getId() == R.id.download_remainder) { + onDownloadRemainder(); } }