From 2b4c9a57ba522cd8dd01dc1f1d2761b66f97e4f2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 31 May 2008 02:24:26 +0000 Subject: more elegant way to remove not relevantmessages. --- sources/core/VSTask.java | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'sources/core/VSTask.java') diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java index 85e7dd6..5039612 100644 --- a/sources/core/VSTask.java +++ b/sources/core/VSTask.java @@ -64,12 +64,6 @@ public class VSTask implements Comparable { /** The simulation's default prefs. */ private VSPrefs prefs; - /** The message line, which gets drawn by the simulation canvas. this - * reference is needed here in order to remove the message line from - * the painting area if the message is not relevant - */ - private simulator.VSSimulatorCanvas.VSMessageLine messageLine; - /** The task is programmed. The task will be still in the task manager * after reset. */ @@ -213,16 +207,6 @@ public class VSTask implements Comparable { return process; } - /** - * Sets the message line. - * - * @param messageLine the message line - */ - public void setMessageLine(simulator.VSSimulatorCanvas.VSMessageLine - messageLine) { - this.messageLine = messageLine; - } - /** * Runs the task. */ @@ -230,12 +214,7 @@ public class VSTask implements Comparable { if (event.getProcess() == null) event.init(process); - if (messageLine != null) { - if (!event.onStart()) - process.getSimulatorCanvas().removeMessageLine(messageLine); - } else { - event.onStart(); - } + event.onStart(); } /** -- cgit v1.2.3