summaryrefslogtreecommitdiff
path: root/src/lib/film.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/film.cc')
-rw-r--r--src/lib/film.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 1258cdb11..1ac519011 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -2235,21 +2235,6 @@ Film::marker (dcp::Marker type) const
return i->second;
}
-shared_ptr<InfoFileHandle>
-Film::info_file_handle (DCPTimePeriod period, bool read) const
-{
- return std::make_shared<InfoFileHandle>(_info_file_mutex, info_file(period), read);
-}
-
-InfoFileHandle::InfoFileHandle (boost::mutex& mutex, boost::filesystem::path path, bool read)
- : _lock (mutex)
- , _file(path, read ? "rb" : (dcp::filesystem::exists(path) ? "r+b" : "wb"))
-{
- if (!_file) {
- throw OpenFileError(path, _file.open_error(), read ? OpenFileError::READ : (dcp::filesystem::exists(path) ? OpenFileError::READ_WRITE : OpenFileError::WRITE));
- }
-}
-
/** Add FFOC and LFOC markers to a list if they are not already there */
void