Browse Source

fix: lint warnings

Tienson Qin 3 years ago
parent
commit
da1e5fc3f8
1 changed files with 0 additions and 7 deletions
  1. 0 7
      src/main/frontend/db/model.cljs

+ 0 - 7
src/main/frontend/db/model.cljs

@@ -802,13 +802,6 @@
     (->> (tree-seq map? (fn [x] [(:block/parent x)]) block)
     (->> (tree-seq map? (fn [x] [(:block/parent x)]) block)
          (some util/collapsed?))))
          (some util/collapsed?))))
 
 
-(defn block-collapsed?
-  ([block-id]
-   (block-collapsed? (state/get-current-repo) block-id))
-  ([repo block-id]
-   (when-let [block (db-utils/entity repo [:block/uuid block-id])]
-     (util/collapsed? block))))
-
 (defn get-block-page
 (defn get-block-page
   [repo block-id]
   [repo block-id]
   (when-let [block (db-utils/entity repo [:block/uuid block-id])]
   (when-let [block (db-utils/entity repo [:block/uuid block-id])]