mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
Delete unneded file
This commit is contained in:
parent
e63231700f
commit
223aa6ab18
@ -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");
|
||||
}
|
Loading…
Reference in New Issue
Block a user