mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:30:06 +00:00 
			
		
		
		
	Removing unused JSON functionality
This commit is contained in:
		
							parent
							
								
									6b90c5471d
								
							
						
					
					
						commit
						0c1706ce6f
					
				
					 3 changed files with 4 additions and 246 deletions
				
			
		|  | @ -2,7 +2,7 @@ | |||
| 
 | ||||
| #include <optional> | ||||
| 
 | ||||
| #include <boost/json.hpp> | ||||
| #include <boost/json/value.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  | @ -13,28 +13,6 @@ namespace util | |||
| namespace json | ||||
| { | ||||
| 
 | ||||
| bool FromJsonBool(const boost::json::object& json, | ||||
|                   const std::string&         key, | ||||
|                   bool&                      value, | ||||
|                   const bool                 defaultValue); | ||||
| bool FromJsonInt64(const boost::json::object& json, | ||||
|                    const std::string&         key, | ||||
|                    int64_t&                   value, | ||||
|                    const int64_t              defaultValue, | ||||
|                    std::optional<int64_t>     minValue, | ||||
|                    std::optional<int64_t>     maxValue); | ||||
| bool FromJsonInt64Array(const boost::json::object&  json, | ||||
|                         const std::string&          key, | ||||
|                         std::vector<int64_t>&       values, | ||||
|                         const std::vector<int64_t>& defaultValues, | ||||
|                         std::optional<int64_t>      minValue, | ||||
|                         std::optional<int64_t>      maxValue); | ||||
| bool FromJsonString(const boost::json::object& json, | ||||
|                     const std::string&         key, | ||||
|                     std::string&               value, | ||||
|                     const std::string&         defaultValue, | ||||
|                     size_t                     minLength = 0); | ||||
| 
 | ||||
| boost::json::value ReadJsonFile(const std::string& path); | ||||
| void               WriteJsonFile(const std::string&        path, | ||||
|                                  const boost::json::value& json, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat