Removed unused argument to TriStateBufferConverter's constructor
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Sun, 13 Dec 2020 20:38:27 +0000 (21:38 +0100)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Thu, 14 Jan 2021 14:44:03 +0000 (15:44 +0100)
plugins/net.mograsim.logic.model.verilog/src/net/mograsim/logic/model/verilog/converter/ModelComponentToVerilogConverter.java
plugins/net.mograsim.logic.model.verilog/src/net/mograsim/logic/model/verilog/converter/components/TriStateBufferConverter.java

index 4e05a22..00d777b 100644 (file)
@@ -72,7 +72,7 @@ public class ModelComponentToVerilogConverter
                if (modelComponent instanceof SubmodelComponent)
                        result = new SubmodelComponentConverter(this).convert((SubmodelComponent) modelComponent, modelID, params, verilogID);
                else if (modelComponent instanceof ModelTriStateBuffer)
-                       result = new TriStateBufferConverter(this).convert((ModelTriStateBuffer) modelComponent, modelID, params, verilogID);
+                       result = new TriStateBufferConverter().convert((ModelTriStateBuffer) modelComponent, modelID, params, verilogID);
                else
                        throw new IllegalArgumentException(
                                        "Can only convert SubmodelComponents, tried to convert " + modelID + " with params " + params);
index deefaf0..3d3a978 100644 (file)
@@ -37,13 +37,6 @@ public class TriStateBufferConverter implements ComponentConverter<ModelTriState
        private static final VerilogComponentDeclaration TSBW_CONDITIONAL = new VerilogComponentDeclaration("tsbw_conditional",
                        List.of(new Input("cond", 2), new Input("onTrue", 2), new Input("onFalse", 2), new Output("res", 2)));
 
-       private final ModelComponentToVerilogConverter converter;
-
-       public TriStateBufferConverter(ModelComponentToVerilogConverter converter)
-       {
-               this.converter = converter;
-       }
-
        @Override
        public ComponentConversionResult convert(ModelTriStateBuffer modelComponent, String modelID, JsonElement params, String verilogID)
        {