Skip to content

Commit bc599ec

Browse files
committed
abstract-parser: remove redundant Parser constructors
1 parent 9a5cc67 commit bc599ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/abstract-parser.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ class Parser {
7070
{
7171
}
7272

73+
// copy constructor and copy assigment operator are implicitly deleted
74+
// as std::unique_ptr cannot be copied
75+
7376
~Parser() = default;
7477

7578
InStream &input() const {
@@ -91,9 +94,6 @@ class Parser {
9194
EFileFormat inputFormat() const;
9295

9396
private:
94-
Parser(const Parser &);
95-
Parser& operator=(const Parser &);
96-
9797
InStream &input_;
9898
std::unique_ptr<AbstractParser> parser_;
9999
};

0 commit comments

Comments
 (0)