From 703520077ecff2cd17ad6daf00199355cd33d439 Mon Sep 17 00:00:00 2001 From: Charlotte Allen Date: Mon, 27 Jan 2020 18:57:49 -0800 Subject: [PATCH] Remove unneeded json stuff. Turns out we can serialize the data structures directly --- src/clj/shapey_shifty/posts/posts_io.clj | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/clj/shapey_shifty/posts/posts_io.clj b/src/clj/shapey_shifty/posts/posts_io.clj index fee6cd2..8bc2b7b 100644 --- a/src/clj/shapey_shifty/posts/posts_io.clj +++ b/src/clj/shapey_shifty/posts/posts_io.clj @@ -1,6 +1,5 @@ (ns shapey-shifty.posts.posts-io (:require - [clojure.data.json :as json] [shapey-shifty.posts.core :as core])) (def post-filename "post.json") @@ -23,9 +22,6 @@ count dec))) -(defn jsonify-post [post] - (json/write-str post)) - (defn write-post [post dt-path] (let [path (pathmap-to-path dt-path) increment (inc (count-posts-in-date dt-path))