diff --git a/src/helma/scripting/ActionFile.java b/src/helma/scripting/ActionFile.java index bb23ec51..0204a086 100644 --- a/src/helma/scripting/ActionFile.java +++ b/src/helma/scripting/ActionFile.java @@ -30,7 +30,6 @@ public class ActionFile implements Updatable { String name; String sourceName; Prototype prototype; - Application app; File file; String content; long lastmod; @@ -44,7 +43,6 @@ public class ActionFile implements Updatable { */ public ActionFile(File file, String name, Prototype proto) { this.prototype = proto; - this.app = proto.getApplication(); this.name = name; this.sourceName = file.getParentFile().getName() + "/" + file.getName(); this.file = file; @@ -62,7 +60,6 @@ public class ActionFile implements Updatable { */ public ActionFile(String content, String name, String sourceName, Prototype proto) { this.prototype = proto; - this.app = proto.getApplication(); this.name = name; this.sourceName = sourceName; this.file = null; @@ -158,7 +155,7 @@ public class ActionFile implements Updatable { return new String(cbuf); } catch (Exception filex) { - app.logEvent("Error reading " + this + ": " + filex); + prototype.getApplication().logEvent("Error reading " + this + ": " + filex); return null; } @@ -183,15 +180,6 @@ public class ActionFile implements Updatable { return prototype; } - /** - * - * - * @return ... - */ - public Application getApplication() { - return app; - } - /** * * diff --git a/src/helma/scripting/FunctionFile.java b/src/helma/scripting/FunctionFile.java index 4e15ce60..94738e7f 100644 --- a/src/helma/scripting/FunctionFile.java +++ b/src/helma/scripting/FunctionFile.java @@ -25,7 +25,6 @@ import java.io.*; */ public class FunctionFile implements Updatable { Prototype prototype; - Application app; File file; String sourceName; String content; @@ -39,7 +38,6 @@ public class FunctionFile implements Updatable { */ public FunctionFile(File file, Prototype proto) { this.prototype = proto; - this.app = proto.getApplication(); this.sourceName = file.getParentFile().getName() + "/" + file.getName(); this.file = file; update(); @@ -52,7 +50,6 @@ public class FunctionFile implements Updatable { */ public FunctionFile(String body, String sourceName, Prototype proto) { this.prototype = proto; - this.app = proto.getApplication(); this.sourceName = sourceName; this.file = null; this.content = body;