Skip to content
Permalink
Browse files

Remove Signal Head veto warning messages for unrelated turnout deletes

  • Loading branch information...
dsand47 committed Sep 15, 2019
1 parent 3da6cc7 commit 1b278c8bd5f35742da0eaa3f908bfb0ed689797f
Showing with 4 additions and 6 deletions.
  1. +4 −6 java/src/jmri/implementation/AbstractSignalHead.java
@@ -55,16 +55,16 @@ public int getAppearance() {
/**
* Determine whether this signal shows an aspect or appearance
* that allows travel past it only at restricted speed.
* This might be a flashing red appearance, or a
* This might be a flashing red appearance, or a
* Restricting aspect.
*/
@Override
public boolean isShowingRestricting() { return getAppearance() == FLASHRED || getAppearance() == LUNAR || getAppearance() == FLASHLUNAR; }

/**
* Determine whether this signal shows an aspect or appearance
* that forbid travel past it.
* This might be a red appearance, or a
* This might be a red appearance, or a
* Stop aspect. Stop-and-Proceed or Restricting would return false here.
*/
@Override
@@ -201,8 +201,6 @@ public void vetoableChange(java.beans.PropertyChangeEvent evt) throws java.beans
java.beans.PropertyChangeEvent e = new java.beans.PropertyChangeEvent(this, "DoNotDelete", null, null);
throw new java.beans.PropertyVetoException(Bundle.getMessage("InUseTurnoutSignalHeadVeto", getDisplayName()), e); //IN18N
}
} else if ("DoDelete".equals(evt.getPropertyName())) {
log.warn("not clear DoDelete operated? {}", getSystemName()); //NOI18N
}
}

@@ -211,5 +209,5 @@ public String getBeanType() {
return Bundle.getMessage("BeanNameSignalHead");
}

private final static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(AbstractSignalHead.class);
// private final static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(AbstractSignalHead.class);
}

0 comments on commit 1b278c8

Please sign in to comment.
You can’t perform that action at this time.