From 3fade939d6e42625c486678ef8df8accc4aa9ca5 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 16 May 2017 16:47:40 +0100 Subject: [PATCH] JAL-2505 unreachable code (for many years) removed --- src/jalview/datamodel/Mapping.java | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/jalview/datamodel/Mapping.java b/src/jalview/datamodel/Mapping.java index 4dea30c..5a4689d 100644 --- a/src/jalview/datamodel/Mapping.java +++ b/src/jalview/datamodel/Mapping.java @@ -540,27 +540,7 @@ public class Mapping return vf; } } - if (false) // else - { - int[] word = getWord(f.getBegin()); - if (word[0] < word[1]) - { - f.setBegin(word[0]); - } - else - { - f.setBegin(word[1]); - } - word = getWord(f.getEnd()); - if (word[0] > word[1]) - { - f.setEnd(word[0]); - } - else - { - f.setEnd(word[1]); - } - } + // give up and just return the feature. return new SequenceFeature[] { f }; } -- 1.7.10.2