Skip to content

Commit 1713859

Browse files
authored
Remove unused code from parse util (jbeder#1048)
1 parent 393a02a commit 1713859

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

util/parse.cpp

-15
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,6 @@
55
#include "yaml-cpp/eventhandler.h"
66
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
77

8-
struct Params {
9-
bool hasFile;
10-
std::string fileName;
11-
};
12-
13-
Params ParseArgs(int argc, char** argv) {
14-
Params p;
15-
16-
std::vector<std::string> args(argv + 1, argv + argc);
17-
18-
return p;
19-
}
20-
218
class NullEventHandler : public YAML::EventHandler {
229
public:
2310
void OnDocumentStart(const YAML::Mark&) override {}
@@ -47,8 +34,6 @@ void parse(std::istream& input) {
4734
}
4835

4936
int main(int argc, char** argv) {
50-
Params p = ParseArgs(argc, argv);
51-
5237
if (argc > 1) {
5338
std::ifstream fin;
5439
fin.open(argv[1]);

0 commit comments

Comments
 (0)