aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/ThrottledStream.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-03 11:52:49 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-03 11:52:49 -0400
commit9924019f57a120eafc721bd070d678fb2bd62168 (patch)
tree45302de4c86564f0827519b727ca73e54fee1ee4 /MediaBrowser.Server.Implementations/HttpServer/ThrottledStream.cs
parent45ebbdc23a2051c82d54c7920cdfadd72008c195 (diff)
restore model properties
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/ThrottledStream.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/ThrottledStream.cs12
1 files changed, 0 insertions, 12 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/ThrottledStream.cs b/MediaBrowser.Server.Implementations/HttpServer/ThrottledStream.cs
index 4bde30dac..1c01fa9e0 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/ThrottledStream.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/ThrottledStream.cs
@@ -15,8 +15,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer
/// </summary>
public const long Infinite = 0;
- public Func<long, long, long> ThrottleCallback { get; set; }
-
#region Private members
/// <summary>
/// The base stream.
@@ -293,16 +291,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer
return false;
}
- if (ThrottleCallback != null)
- {
- var val = ThrottleCallback(_maximumBytesPerSecond, _bytesWritten);
-
- if (val == 0)
- {
- return false;
- }
- }
-
return true;
}