From d4624b5c398c9a1395f08cf527aae69a797f197c Mon Sep 17 00:00:00 2001 From: Oskar Jung Date: Thu, 1 Oct 2015 09:37:41 +1300 Subject: [PATCH] Remove unused import --- src/mbeanz/common.clj | 5 ----- src/mbeanz/core.clj | 3 +-- src/mbeanz/handler.clj | 4 ---- 3 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 src/mbeanz/common.clj diff --git a/src/mbeanz/common.clj b/src/mbeanz/common.clj deleted file mode 100644 index 7233549..0000000 --- a/src/mbeanz/common.clj +++ /dev/null @@ -1,5 +0,0 @@ -(ns mbeanz.common - (:gen-class)) - -(defn stringify [keyword] - (subs (str keyword) 1)) diff --git a/src/mbeanz/core.clj b/src/mbeanz/core.clj index a728cf0..0652771 100644 --- a/src/mbeanz/core.clj +++ b/src/mbeanz/core.clj @@ -1,8 +1,7 @@ (ns mbeanz.core (:gen-class) (:require [clojure.java.jmx :as jmx] - [clojure.core.match :refer [match]] - [mbeanz.common :refer :all]) + [clojure.core.match :refer [match]]) (:import [java.lang.IllegalArgumentException])) (defn get-identifiers [[bean-name & bean-ops]] diff --git a/src/mbeanz/handler.clj b/src/mbeanz/handler.clj index 7fca056..55c89df 100644 --- a/src/mbeanz/handler.clj +++ b/src/mbeanz/handler.clj @@ -6,7 +6,6 @@ [ring.middleware.reload :refer [wrap-reload]] [compojure.core :refer :all] [mbeanz.core :refer :all] - [mbeanz.common :refer :all] [clojure.java.jmx :as jmx] [clojure.edn :as edn]) (:use [org.httpkit.server :only [run-server]] @@ -22,9 +21,6 @@ (defonce jmx-remote-port (atom 1080)) -(defn- identifier-string [identifiers] - (map #(str (:bean %) " " (stringify (:operation %))) identifiers)) - (defn- handle-describe [operation] (fn [request] (jmx/with-connection {:host @jmx-remote-host :port @jmx-remote-port}