aboutsummaryrefslogtreecommitdiff
path: root/dotnet/Mammoth/Couscous/java/util/ArrayDeque.cs
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-06-04 16:03:56 +0100
committerMichael Williamson <mike@zwobble.org>2016-06-04 16:03:56 +0100
commit45e530dceda42282fae56b4c4f5fa7865f57899d (patch)
tree685868f4bf78c64e851cbcdafd674e887bc782a5 /dotnet/Mammoth/Couscous/java/util/ArrayDeque.cs
parentb5a83b1cb96d410e325ff8b733d550295376d8c7 (diff)
Remove dotnet (use submodule from dotnet repo instead)
Diffstat (limited to 'dotnet/Mammoth/Couscous/java/util/ArrayDeque.cs')
-rw-r--r--dotnet/Mammoth/Couscous/java/util/ArrayDeque.cs35
1 files changed, 0 insertions, 35 deletions
diff --git a/dotnet/Mammoth/Couscous/java/util/ArrayDeque.cs b/dotnet/Mammoth/Couscous/java/util/ArrayDeque.cs
deleted file mode 100644
index df5447d..0000000
--- a/dotnet/Mammoth/Couscous/java/util/ArrayDeque.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-namespace Mammoth.Couscous.java.util {
- internal class ArrayDeque<T> : Deque<T> {
- private readonly System.Collections.Generic.IList<T> _list = new System.Collections.Generic.List<T>();
-
- public int size() {
- return _list.Count;
- }
-
- public T getFirst() {
- if (_list.Count > 0) {
- return _list[0];
- } else {
- throw new NoSuchElementException();
- }
- }
-
- public T getLast() {
- if (_list.Count > 0) {
- return _list[_list.Count - 1];
- } else {
- throw new NoSuchElementException();
- }
- }
-
- public void add(T value) {
- _list.Add(value);
- }
-
- public T removeLast() {
- T value = getLast();
- _list.RemoveAt(_list.Count - 1);
- return value;
- }
- }
-}