JAL-2154 drop unused hashes
authorJim Procter <jprocter@issues.jalview.org>
Fri, 19 Aug 2016 10:55:02 +0000 (11:55 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 19 Aug 2016 10:55:02 +0000 (11:55 +0100)
test/jalview/io/CrossRef2xmlTests.java

index d1821f1..b330b2d 100644 (file)
@@ -37,7 +37,6 @@ import java.io.File;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.HashMap;
-import java.util.IdentityHashMap;
 import java.util.List;
 
 import org.testng.Assert;
@@ -128,16 +127,6 @@ public class CrossRef2xmlTests extends Jalview2xmlBase
                 : new CrossRef(seqs, dataset)
                         .findXrefSourcesForSequences(dna);
 
-        /*
-         * map between a view, and views generated after retrieving xrefs
-         */
-        IdentityHashMap<AlignmentViewPanel, List<AlignmentViewPanel>> viewxrefview = new IdentityHashMap<AlignmentViewPanel, List<AlignmentViewPanel>>();
-        /*
-         * map between a particular view and it's originating dbref path
-         */
-        IdentityHashMap<AlignmentViewPanel, String> viewsourcedb = new IdentityHashMap<AlignmentViewPanel, String>();
-
-        viewsourcedb.put(af.alignPanel, first);
         for (String db : ptypes)
         {
           pass2 = 0;
@@ -157,7 +146,6 @@ public class CrossRef2xmlTests extends Jalview2xmlBase
               Assert.assertTrue(cra.getXrefViews().size() > 0,
                       "No crossrefs retrieved for " + db);
               cra_views = cra.getXrefViews();
-              viewxrefview.put(af.alignPanel, cra.getXrefViews());
             }
             else
             {
@@ -197,7 +185,6 @@ public class CrossRef2xmlTests extends Jalview2xmlBase
 
               SequenceI[] xrseqs = avp.getAlignment().getSequencesArray();
 
-              viewsourcedb.put(avp, nextxref);
               stringify(dbtoviewBit, savedProjects, nextxref, avp);
               keyseq.add(nextxref);
 
@@ -272,7 +259,6 @@ public class CrossRef2xmlTests extends Jalview2xmlBase
                                     + "," + pass2 + "): For "
                                     + nextnextxref + ":");
 
-                    viewsourcedb.put(nextavp, nextnextxref);
                     stringify(dbtoviewBit, savedProjects, nextnextxref,
                             nextavp);
                     keyseq.add(nextnextxref);