From e9153e1d1aae50024d8cd05fe14a9bce34343a0e Mon Sep 17 00:00:00 2001
From: teravus
Date: Thu, 15 Nov 2012 10:05:16 -0500
Subject: Revert "Merge master into teravuswork", it should have been
avination, not master.
This reverts commit dfac269032300872c4d0dc507f4f9062d102b0f4, reversing
changes made to 619c39e5144f15aca129d6d999bcc5c34133ee64.
---
OpenSim/Framework/Util.cs | 51 -----------------------------------------------
1 file changed, 51 deletions(-)
(limited to 'OpenSim/Framework/Util.cs')
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index e76a37b..384f716 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -546,19 +546,6 @@ namespace OpenSim.Framework
}
///
- /// Determines whether a point is inside a bounding box.
- ///
- ///
- ///
- ///
- ///
- public static bool IsInsideBox(Vector3 v, Vector3 min, Vector3 max)
- {
- return v.X >= min.X & v.Y >= min.Y && v.Z >= min.Z
- && v.X <= max.X && v.Y <= max.Y && v.Z <= max.Z;
- }
-
- ///
/// Are the co-ordinates of the new region visible from the old region?
///
/// Old region x-coord
@@ -875,12 +862,6 @@ namespace OpenSim.Framework
return Math.Min(Math.Max(x, min), max);
}
- public static Vector3 Clip(Vector3 vec, float min, float max)
- {
- return new Vector3(Clip(vec.X, min, max), Clip(vec.Y, min, max),
- Clip(vec.Z, min, max));
- }
-
///
/// Convert an UUID to a raw uuid string. Right now this is a string without hyphens.
///
@@ -1032,38 +1013,6 @@ namespace OpenSim.Framework
}
}
- ///
- /// Copy data from one stream to another, leaving the read position of both streams at the beginning.
- ///
- ///
- /// Input stream. Must be seekable.
- ///
- ///
- /// Thrown if the input stream is not seekable.
- ///
- public static Stream Copy(Stream inputStream)
- {
- if (!inputStream.CanSeek)
- throw new ArgumentException("Util.Copy(Stream inputStream) must receive an inputStream that can seek");
-
- const int readSize = 256;
- byte[] buffer = new byte[readSize];
- MemoryStream ms = new MemoryStream();
-
- int count = inputStream.Read(buffer, 0, readSize);
-
- while (count > 0)
- {
- ms.Write(buffer, 0, count);
- count = inputStream.Read(buffer, 0, readSize);
- }
-
- ms.Position = 0;
- inputStream.Position = 0;
-
- return ms;
- }
-
public static XmlRpcResponse XmlRpcCommand(string url, string methodName, params object[] args)
{
return SendXmlRpcCommand(url, methodName, args);
--
cgit v1.1