Skip to content

Commit

Permalink
Merge pull request ballerina-platform#42739 from azinneera/cli-codecov
Browse files Browse the repository at this point in the history
Remove unused code
  • Loading branch information
azinneera authored May 14, 2024
2 parents 5bc699c + b8a4619 commit abfcbf6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 127 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ public interface BLauncherCmd {
* @return usage info for the specified command
*/
static String getCommandUsageInfo(String commandName) {
if (commandName == null) {
throw LauncherUtils.createUsageExceptionWithHelp("invalid command");
}

String fileName = "cli-help/ballerina-" + commandName + ".help";
try {
return BCompileUtil.readFileAsString(fileName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ public class BallerinaCliCommands {
public static final String HELP = "help";
public static final String VERSION = "version";
public static final String RUN = "run";
public static final String ENCRYPT = "encrypt";
public static final String HOME = "home";
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
* Utility methods for compile Ballerina files.
Expand All @@ -31,9 +29,6 @@
*/
public class BCompileUtil {

//TODO find a way to remove below line.
private static Path resourceDir = Paths.get("src/test/resources").toAbsolutePath();

public static String readFileAsString(String path) throws IOException {
InputStream is = ClassLoader.getSystemResourceAsStream(path);
InputStreamReader inputStreamREader = null;
Expand Down

This file was deleted.

0 comments on commit abfcbf6

Please sign in to comment.