From 5a3b3bb027c8174e03ae346ed52901cf72701e45 Mon Sep 17 00:00:00 2001 From: tcarver <tjc> Date: Tue, 17 Sep 2013 10:49:43 +0100 Subject: [PATCH] remove unused constructor --- .../artemis/components/ValidateViewer.java | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/uk/ac/sanger/artemis/components/ValidateViewer.java b/uk/ac/sanger/artemis/components/ValidateViewer.java index b6dc142d6..96906e1e8 100644 --- a/uk/ac/sanger/artemis/components/ValidateViewer.java +++ b/uk/ac/sanger/artemis/components/ValidateViewer.java @@ -57,29 +57,18 @@ public class ValidateViewer extends FileViewer implements EntryGroupChangeListen private FeatureVector selectedFeatures; private JCheckBox showFailedFeatures = new JCheckBox("Show only failed features", true); private boolean inAutoFix = false; - private String seqName; - public ValidateViewer(final EntryGroup entryGrp, - final FeatureVector selectedFeatures) - { - this(entryGrp, selectedFeatures, null); - } - /** * Viewer to display validation results * @param entryGrp * @param features */ public ValidateViewer(final EntryGroup entryGrp, - final FeatureVector selectedFeatures, - final String seqName) + final FeatureVector selectedFeatures) { - super("Validation Report :: "+ (seqName!=null? seqName:""), false, false, true); + super("Validation Report :: ", false, false, true); this.entryGrp = entryGrp; this.selectedFeatures = selectedFeatures; - this.seqName = seqName; - - //final boolean allFeatures = (selectedFeatures == null); update(); setVisible(true); @@ -219,9 +208,7 @@ public class ValidateViewer extends FileViewer implements EntryGroupChangeListen this, showFailedFeatures.isSelected())) nfail++; - setTitle("Validation Report :: "+ - (seqName!=null&&!seqName.equals("")? - seqName+" :: " : "")+features.size()+ + setTitle("Validation Report :: "+ features.size()+ " feature(s) Pass: "+(features.size()-nfail)+" Failed: "+nfail); } @@ -264,7 +251,6 @@ public class ValidateViewer extends FileViewer implements EntryGroupChangeListen if(gene != null && !gene.getGene().isReadOnly() && GeneUtils.isBoundaryOK(gene) > 0) { //updatedFeatures.add(feature); - GeneUtils.checkGeneBoundary(gene, false); } } @@ -274,4 +260,4 @@ public class ValidateViewer extends FileViewer implements EntryGroupChangeListen entryGrp.removeEntryGroupChangeListener(ValidateViewer.this); dispose(); } -} \ No newline at end of file +} -- GitLab