summaryrefslogtreecommitdiff
path: root/csharp/src/Ice/OutputStream.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/src/Ice/OutputStream.cs')
-rw-r--r--csharp/src/Ice/OutputStream.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/csharp/src/Ice/OutputStream.cs b/csharp/src/Ice/OutputStream.cs
index 242f89d3b0a..fa7ae881100 100644
--- a/csharp/src/Ice/OutputStream.cs
+++ b/csharp/src/Ice/OutputStream.cs
@@ -15,10 +15,8 @@ namespace Ice
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
-#if !COMPACT && !SILVERLIGHT
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
-#endif
using System.Threading;
using Protocol = IceInternal.Protocol;
@@ -728,7 +726,6 @@ namespace Ice
/// <param name="o">The serializable object to write.</param>
public void writeSerializable(object o)
{
-#if !COMPACT && !SILVERLIGHT
if(o == null)
{
writeSize(0);
@@ -745,9 +742,6 @@ namespace Ice
{
throw new Ice.MarshalException("cannot serialize object:", ex);
}
-#else
- throw new Ice.MarshalException("serialization not supported");
-#endif
}
/// <summary>