You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/06/01 18:45:01 UTC

[commons-imaging] 03/04: Remove unused method

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git

commit dfa1c9a6996b8bca9a0a3fdfe733e829d8de46e4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jun 1 14:39:26 2023 -0400

    Remove unused method
---
 src/main/java/org/apache/commons/imaging/bytesource/ByteSource.java  | 4 ----
 .../java/org/apache/commons/imaging/bytesource/ByteSourceFile.java   | 5 -----
 2 files changed, 9 deletions(-)

diff --git a/src/main/java/org/apache/commons/imaging/bytesource/ByteSource.java b/src/main/java/org/apache/commons/imaging/bytesource/ByteSource.java
index 24763af5..5583935e 100644
--- a/src/main/java/org/apache/commons/imaging/bytesource/ByteSource.java
+++ b/src/main/java/org/apache/commons/imaging/bytesource/ByteSource.java
@@ -82,10 +82,6 @@ public abstract class ByteSource {
      */
     public abstract long getLength() throws IOException;
 
-    public boolean isFile() {
-        return false;
-    }
-
     @Override
     public String toString() {
         return getClass().getSimpleName() + "[" + getFileName() + "]";
diff --git a/src/main/java/org/apache/commons/imaging/bytesource/ByteSourceFile.java b/src/main/java/org/apache/commons/imaging/bytesource/ByteSourceFile.java
index 4e8fd60e..0af10f50 100644
--- a/src/main/java/org/apache/commons/imaging/bytesource/ByteSourceFile.java
+++ b/src/main/java/org/apache/commons/imaging/bytesource/ByteSourceFile.java
@@ -58,9 +58,4 @@ class ByteSourceFile extends ByteSource {
         return file.length();
     }
 
-    @Override
-    public boolean isFile() {
-        return true;
-    }
-
 }