Skip to content

Commit ffe02e4

Browse files
committed
Remove useless cmdlinet::clear() call
In cmdlinet this clears vectors that are about to die anyway, and because it is called in a destructor it cannot dispatch to a child class. By removing this call we can disabuse any extending child of the false expectation that their derived clear() method will in fact be called.
1 parent ae34e9b commit ffe02e4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/util/cmdline.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ cmdlinet::cmdlinet()
1818

1919
cmdlinet::~cmdlinet()
2020
{
21-
clear();
2221
}
2322

2423
void cmdlinet::clear()

0 commit comments

Comments
 (0)