Index: pkg/barback/lib/src/utils.dart |
diff --git a/pkg/barback/lib/src/utils.dart b/pkg/barback/lib/src/utils.dart |
index ef6a783053871d8b1c3f30f159f0f8358b78287d..a925bec73ae0acd70f4c16bd1bd8e0ba07d79a65 100644 |
--- a/pkg/barback/lib/src/utils.dart |
+++ b/pkg/barback/lib/src/utils.dart |
@@ -196,23 +196,3 @@ Stream futureStream(Future<Stream> future) { |
}); |
return controller.stream; |
} |
- |
-// TODO(nweiz): Use a built-in function when issue 14244 is fixed. |
-int get maxFileDescriptors { |
- if (_maxFileDescriptors != null) return _maxFileDescriptors; |
- |
- // Running "sh -c ulimit -n" via the command line always reports "unlimited", |
- // even when that's clearly false. Instead we fall back on OS-based |
- // heuristics. |
- if (Platform.isWindows) { |
- _maxFileDescriptors = 512; |
- return _maxFileDescriptors; |
- } else if (Platform.isMacOS) { |
- _maxFileDescriptors = 16348; |
- return _maxFileDescriptors; |
- } else { |
- _maxFileDescriptors = 256; |
- return _maxFileDescriptors; |
- } |
-} |
-int _maxFileDescriptors; |