From bfcd1b520fd79b893e721ba916ae5e1656407d2f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 16 Aug 2017 02:43:41 -0400 Subject: merge common implementations and server implementations --- .../IO/SharpCifs/Util/Sharpen/SynchronizedList.cs | 106 --------------------- 1 file changed, 106 deletions(-) delete mode 100644 Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/SynchronizedList.cs (limited to 'Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/SynchronizedList.cs') diff --git a/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/SynchronizedList.cs b/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/SynchronizedList.cs deleted file mode 100644 index c105a8bab6..0000000000 --- a/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/SynchronizedList.cs +++ /dev/null @@ -1,106 +0,0 @@ -using System.Collections; -using System.Collections.Generic; - -namespace SharpCifs.Util.Sharpen -{ - internal class SynchronizedList : IList - { - private IList _list; - - public SynchronizedList (IList list) - { - this._list = list; - } - - public int IndexOf (T item) - { - lock (_list) { - return _list.IndexOf (item); - } - } - - public void Insert (int index, T item) - { - lock (_list) { - _list.Insert (index, item); - } - } - - public void RemoveAt (int index) - { - lock (_list) { - _list.RemoveAt (index); - } - } - - void ICollection.Add (T item) - { - lock (_list) { - _list.Add (item); - } - } - - void ICollection.Clear () - { - lock (_list) { - _list.Clear (); - } - } - - bool ICollection.Contains (T item) - { - lock (_list) { - return _list.Contains (item); - } - } - - void ICollection.CopyTo (T[] array, int arrayIndex) - { - lock (_list) { - _list.CopyTo (array, arrayIndex); - } - } - - bool ICollection.Remove (T item) - { - lock (_list) { - return _list.Remove (item); - } - } - - IEnumerator IEnumerable.GetEnumerator () - { - return _list.GetEnumerator (); - } - - IEnumerator IEnumerable.GetEnumerator () - { - return _list.GetEnumerator (); - } - - public T this[int index] { - get { - lock (_list) { - return _list[index]; - } - } - set { - lock (_list) { - _list[index] = value; - } - } - } - - int ICollection.Count { - get { - lock (_list) { - return _list.Count; - } - } - } - - bool ICollection.IsReadOnly { - get { return _list.IsReadOnly; } - } - } -} -- cgit v1.2.3