From acb90e703f6441c03eb7addd72c34e03edc172fd Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Sun, 16 Jun 2019 17:58:39 +0200 Subject: [PATCH] Removed unnecesarry edits --- SystemExtensions/Collections/CircularQueue.cs | 109 ------------------ SystemExtensions/SystemExtensions.csproj | 1 - 2 files changed, 110 deletions(-) delete mode 100644 SystemExtensions/Collections/CircularQueue.cs diff --git a/SystemExtensions/Collections/CircularQueue.cs b/SystemExtensions/Collections/CircularQueue.cs deleted file mode 100644 index 4cf5112..0000000 --- a/SystemExtensions/Collections/CircularQueue.cs +++ /dev/null @@ -1,109 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SystemExtensions.Collections -{ - /// - /// Implementation of a queue based on a circular array. Efficient implementation when capacity is known from before. - /// - /// Provided type. - class CircularQueue : IQueue - { - #region Fields - int count; - int capacity; - int insertLocation; - int readLocation; - T[] items; - #endregion - #region Properties - /// - /// Returns the number of items in the queue. - /// - public int Count { get => count; } - /// - /// Capacity of the queue. - /// - public int Capacity { get => capacity; - set - { - capacity = value; - ///TO IMPLEMENT CREATION OF A NEW BUFFER - throw new NotImplementedException(); - } - } - #endregion - #region Constructors - public CircularQueue() - { - count = 0; - capacity = 10; - items = new T[capacity]; - } - public CircularQueue(int capacity) - { - this.capacity = capacity; - count = 0; - items = new T[capacity]; - } - #endregion - #region Public Methods - /// - /// Clears the queue. - /// - public void Clear() - { - throw new NotImplementedException(); - } - /// - /// Checks if provided item is present into the queue. - /// - /// Item to be checked. - /// True if item is present. False otherwise. - public bool Contains(T item) - { - throw new NotImplementedException(); - } - /// - /// Removes and returns the first item from the queue. - /// - /// First item from the queue. - public T Dequeue() - { - throw new NotImplementedException(); - } - /// - /// Inserts provided item into the queue. - /// - /// Item to be inserted. - public void Enqueue(T item) - { - throw new NotImplementedException(); - } - /// - /// Checks and returns the first item from the queue without removing it. - /// - /// The first item from the queue. - public T Peek() - { - throw new NotImplementedException(); - } - - public IEnumerator GetEnumerator() - { - throw new NotImplementedException(); - } - - #endregion - #region Private Methods - IEnumerator IEnumerable.GetEnumerator() - { - throw new NotImplementedException(); - } - #endregion - } -} diff --git a/SystemExtensions/SystemExtensions.csproj b/SystemExtensions/SystemExtensions.csproj index 5c3b56a..4b872f6 100644 --- a/SystemExtensions/SystemExtensions.csproj +++ b/SystemExtensions/SystemExtensions.csproj @@ -47,7 +47,6 @@ -