aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/AvatarWearable.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-03-05 18:36:37 +0000
committerJustin Clarke Casey2009-03-05 18:36:37 +0000
commit0de34e9a183d596dc051fa708517dcb99a35abae (patch)
tree0075b425d89811d4b4548995a0ac2487c59d2871 /OpenSim/Framework/AvatarWearable.cs
parentMake DeserializeUUID explicitly private. (diff)
downloadopensim-SC_OLD-0de34e9a183d596dc051fa708517dcb99a35abae.zip
opensim-SC_OLD-0de34e9a183d596dc051fa708517dcb99a35abae.tar.gz
opensim-SC_OLD-0de34e9a183d596dc051fa708517dcb99a35abae.tar.bz2
opensim-SC_OLD-0de34e9a183d596dc051fa708517dcb99a35abae.tar.xz
* remove now unused serialization code
Diffstat (limited to 'OpenSim/Framework/AvatarWearable.cs')
-rw-r--r--OpenSim/Framework/AvatarWearable.cs35
1 files changed, 1 insertions, 34 deletions
diff --git a/OpenSim/Framework/AvatarWearable.cs b/OpenSim/Framework/AvatarWearable.cs
index 1d015e5..82b74ce 100644
--- a/OpenSim/Framework/AvatarWearable.cs
+++ b/OpenSim/Framework/AvatarWearable.cs
@@ -32,8 +32,7 @@ using OpenMetaverse;
32 32
33namespace OpenSim.Framework 33namespace OpenSim.Framework
34{ 34{
35 [Serializable] 35 public class AvatarWearable
36 public class AvatarWearable : ISerializable
37 { 36 {
38 public UUID AssetID = new UUID("00000000-0000-0000-0000-000000000000"); 37 public UUID AssetID = new UUID("00000000-0000-0000-0000-000000000000");
39 public UUID ItemID = new UUID("00000000-0000-0000-0000-000000000000"); 38 public UUID ItemID = new UUID("00000000-0000-0000-0000-000000000000");
@@ -48,20 +47,6 @@ namespace OpenSim.Framework
48 ItemID = itemId; 47 ItemID = itemId;
49 } 48 }
50 49
51 protected AvatarWearable(SerializationInfo info, StreamingContext context)
52 {
53 //m_log.Debug("AvatarWearable Deserialize BGN");
54 if (info == null)
55 {
56 throw new ArgumentNullException("info");
57 }
58
59 AssetID = new UUID((Guid) info.GetValue("AssetID", typeof (Guid)));
60 ItemID = new UUID((Guid) info.GetValue("ItemID", typeof (Guid)));
61
62 //m_log.Debug("AvatarWearable Deserialize END");
63 }
64
65 public static AvatarWearable[] DefaultWearables 50 public static AvatarWearable[] DefaultWearables
66 { 51 {
67 get 52 get
@@ -91,23 +76,5 @@ namespace OpenSim.Framework
91 return defaultWearables; 76 return defaultWearables;
92 } 77 }
93 } 78 }
94
95 #region ISerializable Members
96
97 [SecurityPermission(SecurityAction.LinkDemand,
98 Flags = SecurityPermissionFlag.SerializationFormatter)]
99 public virtual void GetObjectData(
100 SerializationInfo info, StreamingContext context)
101 {
102 if (info == null)
103 {
104 throw new ArgumentNullException("info");
105 }
106
107 info.AddValue("AssetID", AssetID.Guid);
108 info.AddValue("ItemID", ItemID.Guid);
109 }
110
111 #endregion
112 } 79 }
113} 80}