From: Daniel Kirschten Date: Tue, 11 Jun 2019 20:57:20 +0000 (+0200) Subject: Removed redundant calls to getPin X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=7af6537046115c9bbf226c6c1cd149608198d0fb;p=Mograsim.git Removed redundant calls to getPin --- diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIxor.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIxor.java index da3410bf..f32eee46 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIxor.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIxor.java @@ -47,11 +47,11 @@ public class GUIxor extends SimpleRectangularSubmodelComponent new GUIWire(submodelModifiable, B, cpB, new Point[0]); new GUIWire(submodelModifiable, cpA, nandAB.getInputPins().get(0), new Point(5, 20)); new GUIWire(submodelModifiable, cpB, nandAB.getInputPins().get(1), new Point(5, 30)); - new GUIWire(submodelModifiable, nandAB.getOutputPin(), cpAB.getPin()); - new GUIWire(submodelModifiable, cpAB.getPin(), nandYA.getInputPins().get(1), new Point(30, 17.5)); - new GUIWire(submodelModifiable, cpAB.getPin(), nandYB.getInputPins().get(0), new Point(30, 32.5)); - new GUIWire(submodelModifiable, cpA.getPin(), nandYA.getInputPins().get(0), new Point(5, 7.5)); - new GUIWire(submodelModifiable, cpB.getPin(), nandYB.getInputPins().get(1), new Point(5, 42.5)); + new GUIWire(submodelModifiable, nandAB.getOutputPin(), cpAB); + new GUIWire(submodelModifiable, cpAB, nandYA.getInputPins().get(1), new Point(30, 17.5)); + new GUIWire(submodelModifiable, cpAB, nandYB.getInputPins().get(0), new Point(30, 32.5)); + new GUIWire(submodelModifiable, cpA, nandYA.getInputPins().get(0), new Point(5, 7.5)); + new GUIWire(submodelModifiable, cpB, nandYB.getInputPins().get(1), new Point(5, 42.5)); new GUIWire(submodelModifiable, nandYA.getOutputPin(), nandY.getInputPins().get(0)); new GUIWire(submodelModifiable, nandYB.getOutputPin(), nandY.getInputPins().get(1)); new GUIWire(submodelModifiable, nandY.getOutputPin(), Y);