We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 034d666 commit c05ff34Copy full SHA for c05ff34
dict/dawg.h
@@ -368,14 +368,6 @@ struct DawgPosition {
368
369
class DawgPositionVector : public GenericVector<DawgPosition> {
370
public:
371
- /// Overload destructor, since clear() does not delete data_[] any more.
372
- ~DawgPositionVector() {
373
- if (size_reserved_ > 0) {
374
- delete[] data_;
375
- size_used_ = 0;
376
- size_reserved_ = 0;
377
- }
378
379
/// Overload clear() in order to avoid allocating/deallocating memory
380
/// when clearing the vector and re-inserting entries into it later.
381
void clear() { size_used_ = 0; }
0 commit comments