Remove unused helper function

This commit is contained in:
Thomas Goyne 2014-07-03 10:14:09 -07:00
parent 2f0ddb4f32
commit 6ce9ce1546
2 changed files with 0 additions and 9 deletions

View File

@ -41,10 +41,6 @@ json::UnknownElement parse(std::istream &stream) {
} }
} }
json::UnknownElement file(agi::fs::path const& file) {
return parse(*io::Open(file));
}
json::UnknownElement file(agi::fs::path const& file, std::pair<const char *, size_t> default_config) { json::UnknownElement file(agi::fs::path const& file, std::pair<const char *, size_t> default_config) {
try { try {
if (fs::FileExists(file)) if (fs::FileExists(file))

View File

@ -26,11 +26,6 @@ namespace agi { namespace json_util {
/// @return json::UnknownElement /// @return json::UnknownElement
json::UnknownElement parse(std::istream &stream); json::UnknownElement parse(std::istream &stream);
/// Parse a JSON file.
/// @param file Path JSON to file
/// @return json::UnknownElement
json::UnknownElement file(agi::fs::path const& file);
/// Parse a json stream, with default handler. /// Parse a json stream, with default handler.
/// @param file Path to JSON file. /// @param file Path to JSON file.
/// @param Default config file to load incase of nonexistent file /// @param Default config file to load incase of nonexistent file