aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/UndoStack.cs
diff options
context:
space:
mode:
authorJeff Ames2008-06-26 20:04:06 +0000
committerJeff Ames2008-06-26 20:04:06 +0000
commit56802afff4ce1585dba96ba49be02bc34a5c29e0 (patch)
tree7509e9e487d2add8d5b1ba75120e9492ca9d46d0 /OpenSim/Framework/UndoStack.cs
parent* Put extensions on all assets in an archive (diff)
downloadopensim-SC_OLD-56802afff4ce1585dba96ba49be02bc34a5c29e0.zip
opensim-SC_OLD-56802afff4ce1585dba96ba49be02bc34a5c29e0.tar.gz
opensim-SC_OLD-56802afff4ce1585dba96ba49be02bc34a5c29e0.tar.bz2
opensim-SC_OLD-56802afff4ce1585dba96ba49be02bc34a5c29e0.tar.xz
Update svn properties. Minor formatting cleanup.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/UndoStack.cs6
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}