JAL-629 Tidy up tests and replaced methods before merge to develop
[jalview.git] / src / jalview / io / StructureFile.java
index 61b3d1d..6ec0298 100644 (file)
@@ -359,54 +359,6 @@ public abstract class StructureFile extends AlignFile
     }
   }
 
-  @SuppressWarnings({ "unchecked", "rawtypes" })
-  private void NOTprocessWithJmolParser(List<SequenceI> prot)
-          throws Exception
-  {
-    try
-    {
-
-      Class cl = Class.forName("jalview.ext.jmol.JmolParser");
-      if (cl != null)
-      {
-        final Constructor constructor = cl
-                .getConstructor(new Class[]
-                { FileParse.class });
-        final Object[] args = new Object[] {
-            new FileParse(getDataName(), dataSourceType) };
-
-        StructureImportSettings.setShowSeqFeatures(false);
-        StructureImportSettings.setVisibleChainAnnotation(false);
-        StructureImportSettings
-                .setProcessSecondaryStructure(predictSecondaryStructure);
-        StructureImportSettings
-                .setExternalSecondaryStructure(externalSecondaryStructure);
-        StructureImportSettings
-                .setTemperatureFactorType(temperatureFactorType);
-        Object jmf = constructor.newInstance(args);
-        AlignmentI al = new Alignment((SequenceI[]) cl
-                .getMethod("getSeqsAsArray", new Class[] {}).invoke(jmf));
-        cl.getMethod("addAnnotations", new Class[] { AlignmentI.class })
-                .invoke(jmf, al);
-        for (SequenceI sq : al.getSequences())
-        {
-          if (sq.getDatasetSequence() != null)
-          {
-            sq.getDatasetSequence().getAllPDBEntries().clear();
-          }
-          else
-          {
-            sq.getAllPDBEntries().clear();
-          }
-        }
-        replaceAndUpdateChains(prot, al, AlignSeq.PEP, false);
-      }
-    } catch (ClassNotFoundException q)
-    {
-    }
-    StructureImportSettings.setShowSeqFeatures(true);
-  }
-
   private void processWithJmolParser(List<SequenceI> prot,
           boolean doXferSettings) throws MalformedURLException, IOException
   {