Cleanup: remove unused Command abstractions (cont.)
diff --git a/src/com/google/typography/font/compression/CompressionRunner.java b/src/com/google/typography/font/compression/CompressionRunner.java
index e7263f0..97a8e6b 100644
--- a/src/com/google/typography/font/compression/CompressionRunner.java
+++ b/src/com/google/typography/font/compression/CompressionRunner.java
@@ -195,19 +195,6 @@
return result;
}
- // This is currently implemented by shelling out to a command line helper,
- // which is fine for research purposes, but obviously problematic for
- // production.
- private static byte[] compressBzip2(byte[] input) {
- try {
- String[] args = {"/bin/bzip2"};
- CommandResult result = new Command(args).execute(input);
- return result.getStdout();
- } catch (CommandException e) {
- throw new RuntimeException(e);
- }
- }
-
/**
* Does one experimental compression on a font, using the string to guide what
* gets done.
@@ -267,8 +254,6 @@
result = GzipUtil.deflate(fontToBytes(fontFactory, font));
} else if (lastBase.equals("lzma")) {
result = CompressLzma.compress(fontToBytes(fontFactory, font));
- } else if (lastBase.equals("bzip2")) {
- result = compressBzip2(fontToBytes(fontFactory, font));
} else if (lastBase.equals("woff")) {
result = toBytes(new WoffWriter().convert(font));
} else if (lastBase.equals("woff2")) {