diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/UndoStack.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenSim/Framework/UndoStack.cs b/OpenSim/Framework/UndoStack.cs index a49a0cc..1fbe083 100644 --- a/OpenSim/Framework/UndoStack.cs +++ b/OpenSim/Framework/UndoStack.cs | |||
@@ -50,7 +50,6 @@ namespace OpenSim.Framework | |||
50 | get { return m_new == m_old; } | 50 | get { return m_new == m_old; } |
51 | } | 51 | } |
52 | 52 | ||
53 | |||
54 | public int Capacity | 53 | public int Capacity |
55 | { | 54 | { |
56 | get { return m_Undos.Length - 1; } | 55 | get { return m_Undos.Length - 1; } |
@@ -67,7 +66,6 @@ namespace OpenSim.Framework | |||
67 | } | 66 | } |
68 | } | 67 | } |
69 | 68 | ||
70 | |||
71 | public void Push(T item) | 69 | public void Push(T item) |
72 | { | 70 | { |
73 | if (IsFull) | 71 | if (IsFull) |
@@ -95,13 +93,11 @@ namespace OpenSim.Framework | |||
95 | throw new InvalidOperationException("Cannot pop from emtpy stack"); | 93 | throw new InvalidOperationException("Cannot pop from emtpy stack"); |
96 | } | 94 | } |
97 | 95 | ||
98 | |||
99 | public T Peek() | 96 | public T Peek() |
100 | { | 97 | { |
101 | return m_Undos[m_new]; | 98 | return m_Undos[m_new]; |
102 | } | 99 | } |
103 | 100 | ||
104 | |||
105 | public void Clear() | 101 | public void Clear() |
106 | { | 102 | { |
107 | if (Count > 0) | 103 | if (Count > 0) |
@@ -115,4 +111,4 @@ namespace OpenSim.Framework | |||
115 | } | 111 | } |
116 | } | 112 | } |
117 | } | 113 | } |
118 | } \ No newline at end of file | 114 | } |