Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
1713859b
Unverified
Commit
1713859b
authored
Oct 13, 2021
by
Michał Janiszewski
Committed by
GitHub
Oct 13, 2021
Browse files
Remove unused code from parse util (#1048)
parent
393a02a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
util/parse.cpp
util/parse.cpp
+0
-15
No files found.
util/parse.cpp
View file @
1713859b
...
@@ -5,19 +5,6 @@
...
@@ -5,19 +5,6 @@
#include "yaml-cpp/eventhandler.h"
#include "yaml-cpp/eventhandler.h"
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
struct
Params
{
bool
hasFile
;
std
::
string
fileName
;
};
Params
ParseArgs
(
int
argc
,
char
**
argv
)
{
Params
p
;
std
::
vector
<
std
::
string
>
args
(
argv
+
1
,
argv
+
argc
);
return
p
;
}
class
NullEventHandler
:
public
YAML
::
EventHandler
{
class
NullEventHandler
:
public
YAML
::
EventHandler
{
public:
public:
void
OnDocumentStart
(
const
YAML
::
Mark
&
)
override
{}
void
OnDocumentStart
(
const
YAML
::
Mark
&
)
override
{}
...
@@ -47,8 +34,6 @@ void parse(std::istream& input) {
...
@@ -47,8 +34,6 @@ void parse(std::istream& input) {
}
}
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
Params
p
=
ParseArgs
(
argc
,
argv
);
if
(
argc
>
1
)
{
if
(
argc
>
1
)
{
std
::
ifstream
fin
;
std
::
ifstream
fin
;
fin
.
open
(
argv
[
1
]);
fin
.
open
(
argv
[
1
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment