From 78c8f41e813d7d0e5f36f8f2738c285ef445a05e Mon Sep 17 00:00:00 2001 From: Christopher Schultz Date: Sat, 17 Feb 2018 21:06:02 -0500 Subject: [PATCH] Remove unnecessary NullWriter class. --- java/io/nayuki/qrcodegen/QrCode.java | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/java/io/nayuki/qrcodegen/QrCode.java b/java/io/nayuki/qrcodegen/QrCode.java index bae5d9a..c9ba9fb 100644 --- a/java/io/nayuki/qrcodegen/QrCode.java +++ b/java/io/nayuki/qrcodegen/QrCode.java @@ -932,30 +932,6 @@ public final class QrCode { } - static class NullWriter extends java.io.Writer { - - @Override - public void write(char[] cbuf, int off, int len) - throws java.io.IOException - { - // Do nothing - } - - @Override - public void flush() - throws java.io.IOException - { - // Do nothing - } - - @Override - public void close() - throws java.io.IOException - { - // Do nothing - } - } - public static void main(String[] args) { QrCode qr = QrCode.encodeText("Hello, World", Ecc.MEDIUM);