From 748f206c39a09caa1e33754531274cc1bf46d051 Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sat, 1 Jul 2023 14:49:16 +0200 Subject: [PATCH] Tiny cleanup. Unnecessary code removed. --- Recyclable.Collections/RecyclableList.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index b3c9bc8..345246b 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -69,17 +69,13 @@ namespace Recyclable.Collections _count = targetItemIdx; } -#pragma warning disable CS8618 // _memory will be initialized when the 1st item is added public RecyclableList() -#pragma warning restore CS8618 { _capacity = 4; _memoryBlock = new T[4]; } -#pragma warning disable CS8618 // _memory will be initialized when the 1st item is added public RecyclableList(int initialCapacity) -#pragma warning restore CS8618 { if (initialCapacity >= 4) { @@ -95,54 +91,42 @@ namespace Recyclable.Collections } } -#pragma warning disable CS8618 // _memory will be initialized when the 1st item is added public RecyclableList(RecyclableList source) -#pragma warning restore CS8618 { _capacity = 4; _memoryBlock = new T[4]; AddRange(source); } -#pragma warning disable CS8618 // _memory will be initialized when the 1st item is added public RecyclableList(RecyclableLongList source) -#pragma warning restore CS8618 { _capacity = 4; _memoryBlock = new T[4]; AddRange(source); } -#pragma warning disable CS8618 // _memory will be initialized when the 1st item is added public RecyclableList(ReadOnlySpan source) -#pragma warning restore CS8618 { _capacity = 4; _memoryBlock = new T[4]; AddRange(source); } -#pragma warning disable CS8618 // _memory will be initialized when the 1st item is added public RecyclableList(in T[] source) -#pragma warning restore CS8618 { _capacity = 4; _memoryBlock = new T[4]; AddRange(source); } -#pragma warning disable CS8618 // _memory will be initialized when the 1st item is added public RecyclableList(List source) -#pragma warning restore CS8618 { _capacity = 4; _memoryBlock = new T[4]; AddRange(source); } -#pragma warning disable CS8618 // _memory will be initialized when the 1st item is added public RecyclableList(IList source) -#pragma warning restore CS8618 { _capacity = 4; _memoryBlock = new T[4];