X-Git-Url: http://git.nikiroo.be/?p=nikiroo-utils.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2FIOUtils.java;h=eb105e2698535e325ed602fc0b3ed50f7e0b16b4;hp=1b70b0e783cee077af91067a07e792b6eb5af993;hb=32ae20790403c7bce40bf278db8ca0258623945c;hpb=16d593780fa5a4c39cc36b29382da610eae951da diff --git a/src/be/nikiroo/utils/IOUtils.java b/src/be/nikiroo/utils/IOUtils.java index 1b70b0e..eb105e2 100644 --- a/src/be/nikiroo/utils/IOUtils.java +++ b/src/be/nikiroo/utils/IOUtils.java @@ -5,7 +5,6 @@ import java.awt.geom.AffineTransform; import java.awt.image.AffineTransformOp; import java.awt.image.BufferedImage; import java.io.BufferedReader; -import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; @@ -330,31 +329,6 @@ public class IOUtils { return image; } - /** - * Return the version of the program if it follows the VERSION convention - * (i.e., if it has a file called VERSION containing the version as a - * {@link String} on its binary root). - * - * @return the version, or NULL - */ - public static String getVersion() { - String version = null; - - InputStream in = openResource("VERSION"); - if (in != null) { - try { - ByteArrayOutputStream ba = new ByteArrayOutputStream(); - write(in, ba); - in.close(); - - version = ba.toString("UTF-8"); - } catch (IOException e) { - } - } - - return version; - } - /** * Open the given /-separated resource (from the binary root). *