remove ceph code
[stor4nfv.git] / src / ceph / src / json_spirit / json_spirit_utils.h
diff --git a/src/ceph/src/json_spirit/json_spirit_utils.h b/src/ceph/src/json_spirit/json_spirit_utils.h
deleted file mode 100644 (file)
index c492309..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#ifndef JSON_SPIRIT_UTILS\r
-#define JSON_SPIRIT_UTILS\r
-\r
-//          Copyright John W. Wilkinson 2007 - 2011\r
-// Distributed under the MIT License, see accompanying file LICENSE.txt\r
-\r
-// json spirit version 4.05\r
-\r
-#if defined(_MSC_VER) && (_MSC_VER >= 1020)\r
-# pragma once\r
-#endif\r
-\r
-#include "json_spirit_value.h"\r
-#include <map>\r
-\r
-namespace json_spirit\r
-{ \r
-    template< class Obj_t, class Map_t >\r
-    void obj_to_map( const Obj_t& obj, Map_t& mp_obj )\r
-    {\r
-        mp_obj.clear();\r
-\r
-        for( typename Obj_t::const_iterator i = obj.begin(); i != obj.end(); ++i )\r
-        {\r
-            mp_obj[ i->name_ ] = i->value_;\r
-        }\r
-    }\r
-\r
-    template< class Obj_t, class Map_t >\r
-    void map_to_obj( const Map_t& mp_obj, Obj_t& obj )\r
-    {\r
-        obj.clear();\r
-\r
-        for( typename Map_t::const_iterator i = mp_obj.begin(); i != mp_obj.end(); ++i )\r
-        {\r
-            obj.push_back( typename Obj_t::value_type( i->first, i->second ) );\r
-        }\r
-    }\r
-\r
-#ifdef JSON_SPIRIT_VALUE_ENABLED\r
-    typedef std::map< std::string, Value > Mapped_obj;\r
-#endif\r
-\r
-#if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
-    typedef std::map< std::wstring, wValue > wMapped_obj;\r
-#endif\r
-\r
-    template< class Object_type, class String_type >\r
-    const typename Object_type::value_type::Value_type& find_value( const Object_type& obj, const String_type& name )\r
-    {\r
-        for( typename Object_type::const_iterator i = obj.begin(); i != obj.end(); ++i )\r
-        {\r
-            if( i->name_ == name )\r
-            {\r
-                return i->value_;\r
-            }\r
-        }\r
-\r
-        return Object_type::value_type::Value_type::null;\r
-    }\r
-}\r
-\r
-#endif\r