From aaad2fc8ffb48901e4c893811e82bf7754523d15 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Thu, 7 May 2009 19:27:38 +0000
Subject: * minor: use system ascii encoding rather than newing up our own
object
---
.../Framework/Serialization/External/UserInventoryItemSerializer.cs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
(limited to 'OpenSim/Framework/Serialization')
diff --git a/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs b/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs
index e0ddc96..b3fb7c3 100644
--- a/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs
+++ b/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs
@@ -40,8 +40,6 @@ namespace OpenSim.Framework.Serialization.External
/// XXX: Please do not use yet.
public class UserInventoryItemSerializer
{
- protected static ASCIIEncoding m_asciiEncoding = new ASCIIEncoding();
-
///
/// Deserialize item
///
@@ -50,7 +48,7 @@ namespace OpenSim.Framework.Serialization.External
///
public static InventoryItemBase Deserialize(byte[] serialization)
{
- return Deserialize(m_asciiEncoding.GetString(serialization, 0, serialization.Length));
+ return Deserialize(Encoding.ASCII.GetString(serialization, 0, serialization.Length));
}
///
--
cgit v1.1