diff options
author | Zoltan Varga <vargaz@gmail.com> | 2015-01-14 00:06:31 +0300 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2015-01-14 00:06:31 +0300 |
commit | 032f313d5f3b99954cabb3e152b3c8d4424d5a2b (patch) | |
tree | e09b14b13cfb9b70197cc6255de6b3e91ce6cfb9 /mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher | |
parent | bc8041cbe5152a748be1ccb323611ae903cd4443 (diff) |
[bcl] Remove NET_4_0 defines from class libs.
Diffstat (limited to 'mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher')
-rw-r--r-- | mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs index 81ea8544649..2091b2c7f77 100644 --- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs +++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs @@ -642,16 +642,7 @@ namespace System.ServiceModel.Dispatcher var ms = Stream as MemoryStream; if (ms == null) { ms = new MemoryStream (); -#if NET_4_0 Stream.CopyTo (ms); -#else - byte [] tmp = new byte [0x1000]; - int size; - do { - size = Stream.Read (tmp, 0, tmp.Length); - ms.Write (tmp, 0, size); - } while (size > 0); -#endif this.Stream = ms; } return new RawMessageBuffer (ms.ToArray (), headers, properties); |