From 72c355e8aee163a9f5cada4aafc59121a8c89065 Mon Sep 17 00:00:00 2001 From: fjy Date: Mon, 10 Nov 2014 13:58:23 -0800 Subject: [PATCH] remove crazy handler code --- .../src/main/java/io/druid/segment/IndexIO.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/processing/src/main/java/io/druid/segment/IndexIO.java b/processing/src/main/java/io/druid/segment/IndexIO.java index b8f489768eb..7158c836245 100644 --- a/processing/src/main/java/io/druid/segment/IndexIO.java +++ b/processing/src/main/java/io/druid/segment/IndexIO.java @@ -172,21 +172,7 @@ public class IndexIO throw new ISE("Unknown index version[%s]", version); } } - - public static boolean hasHandler() - { - return (IndexIO.handler != null); - } - - public static void registerHandler(IndexIOHandler handler) - { - if (IndexIO.handler == null) { - IndexIO.handler = handler; - } else { - throw new ISE("Already have a handler[%s], cannot register another[%s]", IndexIO.handler, handler); - } - } - + private static void init() { if (handler == null) {