summaryrefslogtreecommitdiffhomepage
path: root/serialize/json-helper.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-27 14:42:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-27 14:42:14 +0200
commitedb014053ebd3256b3bce16d8d5ac6479d905a2e (patch)
tree0194c62a27ea31ed8594af93f71ae7b0f2374ca3 /serialize/json-helper.cpp
parent0c468a802bd6c41bf57bd674cb9f44157a3af155 (diff)
kill serializing the world for now
Diffstat (limited to 'serialize/json-helper.cpp')
-rw-r--r--serialize/json-helper.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/serialize/json-helper.cpp b/serialize/json-helper.cpp
index 8738065f..dae3ad96 100644
--- a/serialize/json-helper.cpp
+++ b/serialize/json-helper.cpp
@@ -25,23 +25,4 @@ void json_helper::to_json_(const json& j, const fspath& pathname, int indent)
(open_stream<std::ofstream, fspath, std::ios_base::out>(pathname) << j.dump(indent, '\t') << '\n').flush();
}
-#define FORMAT cbor
-
-#define JOIN2(prefix, fmt) prefix ## fmt
-#define JOIN(prefix, fmt) JOIN2(prefix, fmt)
-#define FROM JOIN(from_, FORMAT)
-#define TO JOIN(to_, FORMAT)
-
-auto json_helper::from_binary_(const fspath& pathname) -> json
-{
- return json::FROM(open_stream<std::ifstream, fspath, std::ios_base::in>(pathname));
-}
-
-void json_helper::to_binary_(const json& j, const fspath& pathname)
-{
- auto s = open_stream<std::ofstream, fspath, std::ios_base::out>(pathname);
- json::TO(j, s);
- s.flush();
-}
-
} // namespace floormat