summaryrefslogtreecommitdiff
path: root/lib/file_streamer.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-08-10 19:09:14 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-08-11 10:59:11 -0400
commitd0622b79d8d011c80f63e71c96e69754a5b0ec16 (patch)
tree6e9c387fb1699ba733507341d9009754798392b0 /lib/file_streamer.rb
parent69eb4be7ec8d978580c51d4ead157001511d4768 (diff)
downloadgitlab-ce-d0622b79d8d011c80f63e71c96e69754a5b0ec16.tar.gz
Better categorize test coverage resultsrs-coverage-updates
Also marks a few things as uncovered, and removes an unused class.
Diffstat (limited to 'lib/file_streamer.rb')
-rw-r--r--lib/file_streamer.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/file_streamer.rb b/lib/file_streamer.rb
deleted file mode 100644
index 4e3c6d3c773..00000000000
--- a/lib/file_streamer.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-class FileStreamer #:nodoc:
- attr_reader :to_path
-
- def initialize(path)
- @to_path = path
- end
-
- # Stream the file's contents if Rack::Sendfile isn't present.
- def each
- File.open(to_path, 'rb') do |file|
- while chunk = file.read(16384)
- yield chunk
- end
- end
- end
-end