diff --git a/include/teqp/models/multifluid.hpp b/include/teqp/models/multifluid.hpp
index 609556c7d0b94b39c6ab5a23432908400770a1ef..22aae397f0d90f739834dc3d1d86ce788c050e55 100644
--- a/include/teqp/models/multifluid.hpp
+++ b/include/teqp/models/multifluid.hpp
@@ -934,14 +934,6 @@ inline auto multifluidfactory(const nlohmann::json& spec) {
     
     std::string root = (spec.contains("root")) ? spec.at("root") : "";
     
-    auto JSON_from_path_or_contents = [&root](const nlohmann::json &path_or_contents) -> nlohmann::json {
-        if (path_or_contents.is_string()) {
-            return load_a_JSON_file(path_or_contents.get<std::string>());
-        }
-        else {
-            return path_or_contents;
-        }
-    };
     auto get_json = [](const std::string& path1, const std::string& default_path){
         try{
             return load_a_JSON_file(path1);