Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil committed Jul 13, 2024
1 parent 0137272 commit 6fd67fc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
13 changes: 0 additions & 13 deletions src/main/java/org/queenlang/transpiler/QueenToJavaTranspiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,12 @@
*/
package org.queenlang.transpiler;

import com.github.javaparser.JavaParser;
import com.github.javaparser.ParseResult;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.printer.configuration.DefaultPrinterConfiguration;
import org.queenlang.transpiler.nodes.body.CompilationUnitNode;
import org.queenlang.transpiler.nodes.project.ProjectNode;
import org.queenlang.transpiler.nodes.project.QueenProject;

import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
import java.util.List;
import java.util.stream.Collectors;

/**
* Queen to Java transpiler.
Expand Down Expand Up @@ -73,10 +66,4 @@ public void transpile(final List<Path> files) throws QueenTranspilationException
);
project.transpileTo(this.output);
}

@Override
@Deprecated
public String transpile(InputStream clazz, String fileName) throws IOException, QueenTranspilationException {
return null;
}
}
20 changes: 0 additions & 20 deletions src/main/java/org/queenlang/transpiler/QueenTranspiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,4 @@
*/
public interface QueenTranspiler {
void transpile(final List<Path> files) throws QueenTranspilationException, IOException;

@Deprecated
default String transpile(final File input) throws IOException, QueenTranspilationException {
return this.transpile(new FileInputStream(input), input.getName());
}

@Deprecated
default String transpile(final String input, final String fileName) throws IOException, QueenTranspilationException {
return this.transpile(new ByteArrayInputStream(input.getBytes()), fileName);
}

/**
* Transpile the given Queen class into some other code.
* @param clazz InputStream class.
* @return Transpiled code.
* @throws IOException If we cannot read the InputStream.
*/
@Deprecated
String transpile(final InputStream clazz, final String fileName) throws IOException, QueenTranspilationException;

}

2 comments on commit 6fd67fc

@zoeself
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amihaiemil I've opened the Issues [#90] for the newly added to-dos.

The to-dos may have been added in an earlier commit, but I've found them just now.

@zoeself
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amihaiemil I've closed the Issues [#53, #15, #12, #11] since their to-dos disappeared from the code.

The to-dos may have been removed in an earlier commit, but I've found it just now.

Please sign in to comment.