Update IncludeFactory.cpp

This commit is contained in:
MegaMech
2024-05-03 15:48:06 -06:00
committed by Lywx
parent 58c891187a
commit c6d7773b75
+1 -6
View File
@@ -34,15 +34,10 @@ ExportResult IncludeCodeExporter::Export(std::ostream &write, std::shared_ptr<IP
return std::nullopt;
}
ExportResult IncludeBinaryExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement ) {
throw std::runtime_error("Include factory should not be used for otr/o2r mode.");
return std::nullopt;
}
std::optional<std::shared_ptr<IParsedData>> IncludeFactory::parse(std::vector<uint8_t>& buffer, YAML::Node& node) {
SPDLOG_INFO("parsing INC");
const uint32_t blank = 1;
return std::make_shared<IncludeData>(blank);
}
}