Remove unused Application reference

This commit is contained in:
hns 2004-06-09 10:56:48 +00:00
parent 1b1b26c9db
commit 1b223aef93
2 changed files with 1 additions and 16 deletions

View file

@ -30,7 +30,6 @@ public class ActionFile implements Updatable {
String name; String name;
String sourceName; String sourceName;
Prototype prototype; Prototype prototype;
Application app;
File file; File file;
String content; String content;
long lastmod; long lastmod;
@ -44,7 +43,6 @@ public class ActionFile implements Updatable {
*/ */
public ActionFile(File file, String name, Prototype proto) { public ActionFile(File file, String name, Prototype proto) {
this.prototype = proto; this.prototype = proto;
this.app = proto.getApplication();
this.name = name; this.name = name;
this.sourceName = file.getParentFile().getName() + "/" + file.getName(); this.sourceName = file.getParentFile().getName() + "/" + file.getName();
this.file = file; this.file = file;
@ -62,7 +60,6 @@ public class ActionFile implements Updatable {
*/ */
public ActionFile(String content, String name, String sourceName, Prototype proto) { public ActionFile(String content, String name, String sourceName, Prototype proto) {
this.prototype = proto; this.prototype = proto;
this.app = proto.getApplication();
this.name = name; this.name = name;
this.sourceName = sourceName; this.sourceName = sourceName;
this.file = null; this.file = null;
@ -158,7 +155,7 @@ public class ActionFile implements Updatable {
return new String(cbuf); return new String(cbuf);
} catch (Exception filex) { } catch (Exception filex) {
app.logEvent("Error reading " + this + ": " + filex); prototype.getApplication().logEvent("Error reading " + this + ": " + filex);
return null; return null;
} }
@ -183,15 +180,6 @@ public class ActionFile implements Updatable {
return prototype; return prototype;
} }
/**
*
*
* @return ...
*/
public Application getApplication() {
return app;
}
/** /**
* *
* *

View file

@ -25,7 +25,6 @@ import java.io.*;
*/ */
public class FunctionFile implements Updatable { public class FunctionFile implements Updatable {
Prototype prototype; Prototype prototype;
Application app;
File file; File file;
String sourceName; String sourceName;
String content; String content;
@ -39,7 +38,6 @@ public class FunctionFile implements Updatable {
*/ */
public FunctionFile(File file, Prototype proto) { public FunctionFile(File file, Prototype proto) {
this.prototype = proto; this.prototype = proto;
this.app = proto.getApplication();
this.sourceName = file.getParentFile().getName() + "/" + file.getName(); this.sourceName = file.getParentFile().getName() + "/" + file.getName();
this.file = file; this.file = file;
update(); update();
@ -52,7 +50,6 @@ public class FunctionFile implements Updatable {
*/ */
public FunctionFile(String body, String sourceName, Prototype proto) { public FunctionFile(String body, String sourceName, Prototype proto) {
this.prototype = proto; this.prototype = proto;
this.app = proto.getApplication();
this.sourceName = sourceName; this.sourceName = sourceName;
this.file = null; this.file = null;
this.content = body; this.content = body;