summaryrefslogtreecommitdiff
path: root/qpid/dotnet/Qpid.Client
diff options
context:
space:
mode:
authorSteven Shaw <steshaw@apache.org>2006-12-19 23:18:48 +0000
committerSteven Shaw <steshaw@apache.org>2006-12-19 23:18:48 +0000
commitd0d477f2f3ad0799b09793bd851559b036e1a0ba (patch)
treed0d1f0b06dc73b94c71150009e247139ae125397 /qpid/dotnet/Qpid.Client
parente4fdc648b4902b16c67d00a4a6df5d6f9a095da9 (diff)
downloadqpid-python-d0d477f2f3ad0799b09793bd851559b036e1a0ba.tar.gz
Removed LinkedHashTable.cs from Qpid.Client project as it is supplied by the Qpid.Common project.
Note that LinkedHashTable.cs was not being compiled by the VS.NET 2005 project as it was not part of Qpid.Client.csproj. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@488852 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/dotnet/Qpid.Client')
-rw-r--r--qpid/dotnet/Qpid.Client/Client/Collections/LinkedHashtable.cs216
-rw-r--r--qpid/dotnet/Qpid.Client/Qpid.Client.mdp1
2 files changed, 0 insertions, 217 deletions
diff --git a/qpid/dotnet/Qpid.Client/Client/Collections/LinkedHashtable.cs b/qpid/dotnet/Qpid.Client/Client/Collections/LinkedHashtable.cs
deleted file mode 100644
index 1497fdf70f..0000000000
--- a/qpid/dotnet/Qpid.Client/Client/Collections/LinkedHashtable.cs
+++ /dev/null
@@ -1,216 +0,0 @@
-using System;
-using System.Collections;
-
-/*
-namespace Qpid.Collections
-{
- public class LinkedHashtable : DictionaryBase
- {
- /// <summary>
- /// Maps from key to LinkedDictionaryEntry
- /// </summary>
- private Hashtable _indexedValues = new Hashtable();
-
- private LinkedDictionaryEntry _head;
-
- private LinkedDictionaryEntry _tail;
-
- public class LinkedDictionaryEntry
- {
- public LinkedDictionaryEntry previous;
- public LinkedDictionaryEntry next;
- public object key;
- public object value;
-
- public LinkedDictionaryEntry(object key, object value)
- {
- this.key = key;
- this.value = value;
- }
- }
-
- public object this[object index]
- {
- get
- {
- return ((LinkedDictionaryEntry)_indexedValues[index]).value;
- }
-
- set
- {
- Dictionary[index] = value;
- }
- }
-
- protected override void OnInsertComplete(object key, object value)
- {
- LinkedDictionaryEntry de = new LinkedDictionaryEntry(key, value);
- if (_head == null)
- {
- _head = de;
- _tail = de;
- }
- else
- {
- _tail.next = de;
- de.previous = _tail;
- _tail = de;
- }
- _indexedValues[key] = de;
- }
-
- protected override void OnSetComplete(object key, object oldValue, object newValue)
- {
- if (oldValue == null)
- {
- OnInsertComplete(key, newValue);
- }
- }
-
- protected override void OnRemoveComplete(object key, object value)
- {
- LinkedDictionaryEntry de = (LinkedDictionaryEntry)_indexedValues[key];
- LinkedDictionaryEntry prev = de.previous;
- if (prev == null)
- {
- _head = de.next;
- }
- else
- {
- prev.next = de.next;
- }
-
- LinkedDictionaryEntry next = de.next;
- if (next == null)
- {
- _tail = de;
- }
- else
- {
- next.previous = de.previous;
- }
- }
-
- public ICollection Values
- {
- get
- {
- return InnerHashtable.Values;
- }
- }
-
- public bool Contains(object key)
- {
- return InnerHashtable.Contains(key);
- }
-
- public void Remove(object key)
- {
- Dictionary.Remove(key);
- }
-
- public LinkedDictionaryEntry Head
- {
- get
- {
- return _head;
- }
- }
-
- public LinkedDictionaryEntry Tail
- {
- get
- {
- return _tail;
- }
- }
-
- private class LHTEnumerator : IEnumerator
- {
- private LinkedHashtable _container;
-
- private LinkedDictionaryEntry _current;
-
- /// <summary>
- /// Set once we have navigated off the end of the collection
- /// </summary>
- private bool _needsReset = false;
-
- public LHTEnumerator(LinkedHashtable container)
- {
- _container = container;
- }
-
- public object Current
- {
- get
- {
- if (_current == null)
- {
- throw new Exception("Iterator before first element");
- }
- else
- {
- return _current;
- }
- }
- }
-
- public bool MoveNext()
- {
- if (_needsReset)
- {
- return false;
- }
- else if (_current == null)
- {
- _current = _container.Head;
- }
- else
- {
- _current = _current.next;
- }
- _needsReset = (_current == null);
- return !_needsReset;
- }
-
- public void Reset()
- {
- _current = null;
- _needsReset = false;
- }
- }
-
- public new IEnumerator GetEnumerator()
- {
- return new LHTEnumerator(this);
- }
-
- public void MoveToHead(object key)
- {
- LinkedDictionaryEntry de = (LinkedDictionaryEntry)_indexedValues[key];
- if (de == null)
- {
- throw new ArgumentException("Key " + key + " not found");
- }
- // if the head is the element then there is nothing to do
- if (_head == de)
- {
- return;
- }
- de.previous.next = de.next;
- if (de.next != null)
- {
- de.next.previous = de.previous;
- }
- else
- {
- _tail = de.previous;
- }
- de.next = _head;
- _head = de;
- de.previous = null;
- }
- }
-}
-*/ \ No newline at end of file
diff --git a/qpid/dotnet/Qpid.Client/Qpid.Client.mdp b/qpid/dotnet/Qpid.Client/Qpid.Client.mdp
index fed061e196..f7cc1dd979 100644
--- a/qpid/dotnet/Qpid.Client/Qpid.Client.mdp
+++ b/qpid/dotnet/Qpid.Client/Qpid.Client.mdp
@@ -15,7 +15,6 @@
</Configurations>
<DeployTargets />
<Contents>
- <File name="./Client/Collections/LinkedHashtable.cs" subtype="Code" buildaction="Compile" />
<File name="./Properties/AssemblyInfo.cs" subtype="Code" buildaction="Compile" />
<File name="./qms/failover/FailoverMethod.cs" subtype="Code" buildaction="Compile" />
<File name="./qms/failover/FailoverRoundRobin.cs" subtype="Code" buildaction="Compile" />