Skip to content

Commit 8041e66

Browse files
committed
removed default init of asap/control app. Not sure if I ever re-enter that concept.
1 parent a036bc4 commit 8041e66

File tree

3 files changed

+5
-29
lines changed

3 files changed

+5
-29
lines changed

src/net/sharksystem/asap/engine/ASAPEngineFS.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ private void restoreFromMemento() throws IOException {
174174
void syncMemento() throws IOException {
175175
ASAPMementoFS asapMementoFS = new ASAPMementoFS(new File(this.rootDirectory));
176176
asapMementoFS.read();
177-
Log.writeLog(this, this.toString(), "read memento: " + asapMementoFS);
178-
Log.writeLog(this, this.toString(), "this.lastwritten: " + this.lastMementoWritten);
177+
// Log.writeLog(this, this.toString(), "read memento: " + asapMementoFS);
178+
// Log.writeLog(this, this.toString(), "this.lastwritten: " + this.lastMementoWritten);
179179

180180
if(asapMementoFS.lastMementoWritten != this.lastMementoWritten) {
181-
Log.writeLog(this, this.toString(),"restore from memento - out of sync");
181+
// Log.writeLog(this, this.toString(),"restore from memento - out of sync");
182182
this.restoreFromMemento();
183183
}
184184
}

src/net/sharksystem/asap/engine/ASAPInternalPeerFS.java

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,23 +119,13 @@ private ASAPInternalPeerFS(CharSequence owner, CharSequence rootFolderName, long
119119

120120
/////////////////// asap management app //////////////////////////////////////////////////////
121121
// check if management engine running
122+
/*
122123
if(!this.isASAPManagementEngineRunning()) {
123124
System.out.println(this.getLogStart() + "no asap management engine yet - set it up.");
124125
125126
this.setupEngine(DEFAULT_ASAP_MANAGEMENT_ENGINE_ROOTFOLDER, ASAP_1_0.ASAP_MANAGEMENT_FORMAT);
126-
/*
127-
String fileName = rootFolderName + "/" + DEFAULT_ASAP_MANAGEMENT_ENGINE_ROOTFOLDER;
128-
ASAPEngine asapManagementEngine = ASAPEngineFS.getASAPStorage(this.getOwner().toString(),
129-
fileName, ASAP_1_0.ASAP_MANAGEMENT_FORMAT);
130-
131-
EngineSetting setting = new EngineSetting(
132-
fileName, // folder
133-
listener// listener
134-
);
135-
setting.setASAPEngine(asapManagementEngine);
136-
this.folderMap.put(ASAP_1_0.ASAP_MANAGEMENT_FORMAT, setting);
137-
*/
138127
}
128+
*/
139129

140130
// set listener to asap management app
141131
EngineSetting folderAndListener = folderMap.get(ASAP_1_0.ASAP_MANAGEMENT_FORMAT);

src/net/sharksystem/asap/utils/Helper.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,6 @@ public static ASAPMessages getMessagesByChunkReceivedInfos(String format, String
147147
return null;
148148
}
149149

150-
public static String collOfCharSequence2DebugOutput(Collection<CharSequence> coll) {
151-
if(coll == null || coll.isEmpty()) return "null/empty";
152-
153-
StringBuilder sb = new StringBuilder();
154-
boolean first = true;
155-
for(CharSequence c : coll) {
156-
if(!first) sb.append(" | ");
157-
else first = false;
158-
sb.append(c);
159-
}
160-
161-
return sb.toString();
162-
}
163-
164150
public static final boolean sameByteArray(byte[] a, byte[] b) {
165151
if(a == null && b == null) return true;
166152
if(a.length != b.length) return false;

0 commit comments

Comments
 (0)