From 130895f2c3c8ded982fc9255ce7053422234844e Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 22 Sep 2016 22:25:39 +0300 Subject: [PATCH] Remove state.colors namespace. --- src/uxbox/main/state/colors.cljs | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/uxbox/main/state/colors.cljs diff --git a/src/uxbox/main/state/colors.cljs b/src/uxbox/main/state/colors.cljs deleted file mode 100644 index 433891a2f..000000000 --- a/src/uxbox/main/state/colors.cljs +++ /dev/null @@ -1,22 +0,0 @@ -(ns uxbox.main.state.colors - "A collection of functions for manage dashboard data insinde the state.") - -(defn assoc-collection - "A reduce function for assoc the color collection - to the state map." - [state coll] - (let [id (:id coll)] - (assoc-in state [:colors-by-id id] coll))) - -(defn dissoc-collection - "A reduce function for dissoc the color collection - to the state map." - [state id] - (update state :colors-by-id dissoc id)) - -(defn select-first-collection - "A reduce function for select the first color collection - to the state map." - [state] - (let [colls (sort-by :id (vals (:colors-by-id state)))] - (assoc-in state [:dashboard :collection-id] (:id (first colls)))))