Changeset 3961


Ignore:
Timestamp:
04/20/08 19:40:58 (12 years ago)
Author:
curtis
Message:

Remove legacy case logic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/auto/OMEXMLMetadata.vm

    r3959 r3961  
    3333package loci.formats.ome; 
    3434 
    35 #if ($q.legacy()) 
    36 import $q.basePackage().*; 
    37 #end##if legacy 
    3835import $q.basePackage().$q.subPackage().*; 
    3936import java.util.List; 
     
    5956  public String dumpXML() { 
    6057    if (root == null) return null; 
    61 #if ($q.legacy()) 
    62     try { return ((OMENode) root).writeOME(false); } 
    63     catch (javax.xml.transform.TransformerException exc) { 
    64       LogTools.trace(exc); 
    65     } 
    66     catch (java.io.IOException exc) { LogTools.trace(exc); } 
    67     catch (org.xml.sax.SAXException exc) { LogTools.trace(exc); } 
    68     catch (javax.xml.parsers.ParserConfigurationException exc) { 
    69       LogTools.trace(exc); 
    70     } 
    71     return null; 
    72 #else 
    7358    try { 
    7459      java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream(); 
     
    8065    } 
    8166    return null; 
    82 #end##if legacy 
    8367  } 
    8468 
     
    136120  /* @see loci.formats.meta.MetadataStore#setRoot(Object) */ 
    137121  public void createRoot() { 
    138 #if ($q.legacy()) 
    139     try { 
    140       root = new OMENode(); 
    141     } 
    142     catch (javax.xml.transform.TransformerException exc) { 
    143       LogTools.trace(exc); 
    144     } 
    145 #else 
    146122    try { 
    147123      root = ome.xml.OMEXMLFactory.newOMENode("$q.version()"); 
    148124    } 
    149 #end##if $legacy 
    150125    catch (java.io.IOException exc) { LogTools.trace(exc); } 
    151126    catch (org.xml.sax.SAXException exc) { LogTools.trace(exc); } 
Note: See TracChangeset for help on using the changeset viewer.