diff --git a/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewChannelAction.java b/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewChannelAction.java index dca44dc..153ebdf 100644 --- a/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewChannelAction.java +++ b/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/NewChannelAction.java @@ -25,11 +25,6 @@ @Override public void actionPerformed(ActionEvent e) { - DataFlowModel model = editor.getModel(); - if(model == null) { - model = new DataFlowModel(); - editor.setModel(model); - } String channelName = JOptionPane.showInputDialog("Channel Name:"); if (channelName == null) return; editor.addChannelGenerator(new DataflowChannelGenerator(channelName));