Delete unneded file

This commit is contained in:
Kruglov Pavel 2023-03-28 19:08:28 +02:00 committed by GitHub
parent e63231700f
commit 223aa6ab18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +0,0 @@
#include <google/protobuf/compiler/importer.h>
struct ErrorCollector : public google::protobuf::compiler::MultiFileErrorCollector
{
void AddError(const std::string&, int, int, const std::string& msg) override
{
throw std::runtime_error(msg);
}
};
int main()
{
google::protobuf::compiler::DiskSourceTree disk_source_tree;
disk_source_tree.MapPath("", "schemas/");
ErrorCollector collector;
google::protobuf::compiler::Importer importer(&disk_source_tree, &collector);
try
{
importer.Import("schema.proto");
}
catch()
{
}
importer.pool()->FindMessageTypeByName("Schema");
}