Skip to content

Commit 8598f6d

Browse files
committed
refactor: removed old code
1 parent dec2640 commit 8598f6d

File tree

1 file changed

+0
-79
lines changed

1 file changed

+0
-79
lines changed

src/main/java/ptrman/exp/NarConSimpleWorld.java

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -126,36 +126,6 @@ public void narInferenceSteps(int steps) {
126126

127127
if (!useRngAgent) {
128128
try {
129-
/*
130-
while(true) {
131-
int len = is.available();
132-
133-
if (len > 0) {
134-
int here = 5;
135-
}
136-
137-
break;
138-
139-
*
140-
byte[] buf = new byte[10];
141-
is.read(buf);
142-
143-
if (buf[0] == 0) { // is empty line?
144-
break;
145-
}
146-
147-
String bufAsString = new String(buf);
148-
149-
System.out.println(bufAsString);
150-
151-
int here = 5;
152-
153-
*
154-
}
155-
156-
*/
157-
158-
159129
while(true) {
160130
//byte[] arr = new byte[1];
161131
//is.read(arr);
@@ -236,15 +206,6 @@ public NarConSimpleWorld() {
236206
classifier.minSimilarity = 0.87f;
237207
}
238208

239-
240-
/*
241-
try {
242-
socket = new DatagramSocket(50001);
243-
socket.setSoTimeout(1);
244-
} catch (SocketException e) {
245-
e.printStackTrace();
246-
}*/
247-
248209
// TODO < decide path based on OS >
249210
String commandline = pathToOna+"\\NAR.exe";
250211

@@ -253,46 +214,6 @@ public NarConSimpleWorld() {
253214
os = pro.getOutputStream();
254215
is = pro.getInputStream();
255216

256-
/*
257-
BufferedReader stdInput = new BufferedReader(new
258-
InputStreamReader(is));
259-
260-
//os.write("< a --> b >.\n".getBytes());
261-
262-
//sendText(""+5, false);
263-
264-
byte[] buf = (5+"\r\n").getBytes();
265-
try {
266-
os.write(buf);
267-
os.flush();
268-
} catch (IOException e) {
269-
e.printStackTrace();
270-
}
271-
272-
try {
273-
Thread.sleep(100); // give other processes time
274-
} catch (InterruptedException e) {
275-
//e.printStackTrace();
276-
}
277-
278-
String inputLine;
279-
while ((inputLine = stdInput.readLine()) != null)
280-
System.out.println(inputLine);
281-
282-
*/
283-
284-
/*
285-
for(;;) {
286-
String x = stdInput.readLine();
287-
288-
//if (a > 0) {
289-
int here = 5;
290-
//}
291-
292-
}
293-
294-
*/
295-
296217
int here = 5;
297218

298219
//int here = 5;

0 commit comments

Comments
 (0)