Skip to content

Commit 6fd67fc

Browse files
committed
clean
1 parent 0137272 commit 6fd67fc

2 files changed

Lines changed: 0 additions & 33 deletions

File tree

src/main/java/org/queenlang/transpiler/QueenToJavaTranspiler.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,12 @@
2727
*/
2828
package org.queenlang.transpiler;
2929

30-
import com.github.javaparser.JavaParser;
31-
import com.github.javaparser.ParseResult;
32-
import com.github.javaparser.ast.CompilationUnit;
33-
import com.github.javaparser.printer.configuration.DefaultPrinterConfiguration;
34-
import org.queenlang.transpiler.nodes.body.CompilationUnitNode;
3530
import org.queenlang.transpiler.nodes.project.ProjectNode;
3631
import org.queenlang.transpiler.nodes.project.QueenProject;
3732

3833
import java.io.IOException;
39-
import java.io.InputStream;
4034
import java.nio.file.Path;
4135
import java.util.List;
42-
import java.util.stream.Collectors;
4336

4437
/**
4538
* Queen to Java transpiler.
@@ -73,10 +66,4 @@ public void transpile(final List<Path> files) throws QueenTranspilationException
7366
);
7467
project.transpileTo(this.output);
7568
}
76-
77-
@Override
78-
@Deprecated
79-
public String transpile(InputStream clazz, String fileName) throws IOException, QueenTranspilationException {
80-
return null;
81-
}
8269
}

src/main/java/org/queenlang/transpiler/QueenTranspiler.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,4 @@
3939
*/
4040
public interface QueenTranspiler {
4141
void transpile(final List<Path> files) throws QueenTranspilationException, IOException;
42-
43-
@Deprecated
44-
default String transpile(final File input) throws IOException, QueenTranspilationException {
45-
return this.transpile(new FileInputStream(input), input.getName());
46-
}
47-
48-
@Deprecated
49-
default String transpile(final String input, final String fileName) throws IOException, QueenTranspilationException {
50-
return this.transpile(new ByteArrayInputStream(input.getBytes()), fileName);
51-
}
52-
53-
/**
54-
* Transpile the given Queen class into some other code.
55-
* @param clazz InputStream class.
56-
* @return Transpiled code.
57-
* @throws IOException If we cannot read the InputStream.
58-
*/
59-
@Deprecated
60-
String transpile(final InputStream clazz, final String fileName) throws IOException, QueenTranspilationException;
61-
6242
}

0 commit comments

Comments
 (0)