diff options
| author | Neil <nyamatongwe@gmail.com> | 2022-07-20 11:02:27 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2022-07-20 11:02:27 +1000 | 
| commit | 014fda4ef900232680e4864a16e78664d4c6e4b1 (patch) | |
| tree | 0f129ba3e754a260ffb98a33e1d7c8c492909853 /src/SparseVector.h | |
| parent | b324e4dcee0ced34c4135f68faba0ff17812766a (diff) | |
| download | scintilla-mirror-014fda4ef900232680e4864a16e78664d4c6e4b1.tar.gz | |
Remove unnecessary code in destructor.
Diffstat (limited to 'src/SparseVector.h')
| -rw-r--r-- | src/SparseVector.h | 9 | 
1 files changed, 1 insertions, 8 deletions
| diff --git a/src/SparseVector.h b/src/SparseVector.h index 31815c789..cfd9db02e 100644 --- a/src/SparseVector.h +++ b/src/SparseVector.h @@ -36,14 +36,7 @@ public:  	SparseVector(SparseVector &&) = delete;  	void operator=(const SparseVector &) = delete;  	void operator=(SparseVector &&) = delete; -	~SparseVector() { -		starts.reset(); -		// starts dead here but not used by ClearValue. -		for (Sci::Position part = 0; part < values->Length(); part++) { -			ClearValue(part); -		} -		values.reset(); -	} +	~SparseVector() noexcept = default;  	Sci::Position Length() const noexcept {  		return starts->Length();  	} | 
