Remove unused Application reference
This commit is contained in:
parent
1b1b26c9db
commit
1b223aef93
2 changed files with 1 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue