File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -819,7 +819,6 @@ class IO {
819
819
virtual NodeKind getNodeKind () = 0;
820
820
821
821
virtual void setError (const Twine &) = 0;
822
- virtual std::error_code error () = 0;
823
822
virtual void setAllowUnknownKeys (bool Allow);
824
823
825
824
template <typename T>
@@ -1449,7 +1448,7 @@ class Input : public IO {
1449
1448
~Input () override ;
1450
1449
1451
1450
// Check if there was an syntax or semantic error during parsing.
1452
- std::error_code error () override ;
1451
+ std::error_code error ();
1453
1452
1454
1453
private:
1455
1454
bool outputting () const override ;
@@ -1632,7 +1631,6 @@ class Output : public IO {
1632
1631
void scalarTag (std::string &) override ;
1633
1632
NodeKind getNodeKind () override ;
1634
1633
void setError (const Twine &message) override ;
1635
- std::error_code error () override ;
1636
1634
bool canElideEmptySequence () override ;
1637
1635
1638
1636
// These are only used by operator<<. They could be private
Original file line number Diff line number Diff line change @@ -750,8 +750,6 @@ void Output::scalarTag(std::string &Tag) {
750
750
void Output::setError (const Twine &message) {
751
751
}
752
752
753
- std::error_code Output::error () { return {}; }
754
-
755
753
bool Output::canElideEmptySequence () {
756
754
// Normally, with an optional key/value where the value is an empty sequence,
757
755
// the whole key/value can be not written. But, that produces wrong yaml
You can’t perform that action at this time.
0 commit comments