Browse Source

fix: lint

Peng Xiao 3 years ago
parent
commit
0539e5cf9e

+ 0 - 1
src/main/frontend/commands.cljs

@@ -16,7 +16,6 @@
             [frontend.util.priority :as priority]
             [frontend.util.property :as property]
             [logseq.graph-parser.util :as gp-util]
-            [logseq.graph-parser.config :as gp-config]
             [goog.dom :as gdom]
             [goog.object :as gobj]))
 

+ 0 - 1
src/main/frontend/components/page.cljs

@@ -32,7 +32,6 @@
             [frontend.util :as util]
             [frontend.util.text :as text-util]
             [goog.object :as gobj]
-            [logseq.graph-parser.text :as text]
             [logseq.graph-parser.util :as gp-util]
             [medley.core :as medley]
             [reitit.frontend.easy :as rfe]

+ 1 - 2
src/main/frontend/components/sidebar.cljs

@@ -17,7 +17,6 @@
             [frontend.db :as db]
             [frontend.db-mixins :as db-mixins]
             [frontend.db.model :as db-model]
-            [frontend.db.model :as model]
             [frontend.extensions.pdf.assets :as pdf-assets]
             [frontend.extensions.srs :as srs]
             [frontend.handler.common :as common-handler]
@@ -73,7 +72,7 @@
 (rum/defc page-name
   [name icon]
   (let [original-name (db-model/get-page-original-name name)
-        whiteboard-page? (model/whiteboard-page? name)]
+        whiteboard-page? (db-model/whiteboard-page? name)]
     [:a {:on-click (fn [e]
                      (let [name (util/safe-page-name-sanity-lc name)]
                        (if (and (gobj/get e "shiftKey") (not whiteboard-page?))

+ 1 - 2
src/main/frontend/db/model.cljs

@@ -2,8 +2,7 @@
   "Core db functions."
   ;; TODO: Remove this config once how repos are passed to this ns are standardized
   {:clj-kondo/config {:linters {:unused-binding {:level :off}}}}
-  (:require [cljs.pprint :as pprint]
-            [clojure.set :as set]
+  (:require [clojure.set :as set]
             [clojure.string :as string]
             [clojure.walk :as walk]
             [datascript.core :as d]