Skip to content

Commit f361519

Browse files
authored
Merge pull request #181 from fnproject/remove-unsupported-formats
Remove unsupported formats
2 parents 8fc1543 + a7bbe95 commit f361519

5 files changed

Lines changed: 1 addition & 588 deletions

File tree

runtime/src/main/java/com/fnproject/fn/runtime/DefaultEventCodec.java

Lines changed: 0 additions & 87 deletions
This file was deleted.

runtime/src/main/java/com/fnproject/fn/runtime/EntryPoint.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,14 @@ public static void main(String... args) throws Exception {
2626
// without interference from the user printing stuff to what they believe is stdout.
2727
System.setOut(System.err);
2828

29-
3029
String format = System.getenv("FN_FORMAT");
3130
EventCodec codec;
32-
if (format != null && format.equalsIgnoreCase("http")) {
33-
codec = new HttpEventCodec(System.getenv(), System.in, originalSystemOut);
34-
} else if (format == null || format.equalsIgnoreCase("default")) {
35-
codec = new DefaultEventCodec(System.getenv(), System.in, originalSystemOut);
36-
} else if (format.equals(HTTPStreamCodec.HTTP_STREAM_FORMAT)) {
31+
if (format.equals(HTTPStreamCodec.HTTP_STREAM_FORMAT)) {
3732
codec = new HTTPStreamCodec(System.getenv());
3833
} else {
3934
throw new FunctionInputHandlingException("Unsupported function format:" + format);
4035
}
4136

42-
4337
int exitCode = new EntryPoint().run(System.getenv(), codec, System.err, args);
4438
System.setOut(originalSystemOut);
4539
System.exit(exitCode);

runtime/src/main/java/com/fnproject/fn/runtime/HttpEventCodec.java

Lines changed: 0 additions & 181 deletions
This file was deleted.

runtime/src/test/java/com/fnproject/fn/runtime/DefaultEventCodecTest.java

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)