You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by gr...@apache.org on 2018/09/18 15:06:12 UTC

[tika] 03/03: Removed #getDetector from ImportContextImpl

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

grossws pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git

commit 0d6f140a18f049689bd6a5d69398c33e3af82291
Author: Konstantin Gribov <gr...@gmail.com>
AuthorDate: Tue Sep 18 17:32:00 2018 +0300

    Removed #getDetector from ImportContextImpl
---
 .../main/java/org/apache/tika/example/ImportContextImpl.java   | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/tika-example/src/main/java/org/apache/tika/example/ImportContextImpl.java b/tika-example/src/main/java/org/apache/tika/example/ImportContextImpl.java
index dcfbc0f..5a9c9f4 100755
--- a/tika-example/src/main/java/org/apache/tika/example/ImportContextImpl.java
+++ b/tika-example/src/main/java/org/apache/tika/example/ImportContextImpl.java
@@ -51,8 +51,6 @@ public class ImportContextImpl implements ImportContext {
     private InputContext inputCtx;
     private boolean completed;
 
-    private final Detector detector;
-
     private final MediaType type;
 
     /**
@@ -79,7 +77,6 @@ public class ImportContextImpl implements ImportContext {
         this.inputCtx = ctx;
         this.ioListener = (ioListener != null) ? ioListener
                 : new DefaultIOListener(LOG);
-        this.detector = detector;
 
         Metadata metadata = new Metadata();
         if (ctx != null && ctx.getContentType() != null) {
@@ -111,13 +108,6 @@ public class ImportContextImpl implements ImportContext {
     }
 
     /**
-     * @see ImportContext#getDetector()
-     */
-    public Detector getDetector() {
-        return detector;
-    }
-
-    /**
      * @see ImportContext#hasStream()
      */
     public boolean hasStream() {