diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-16 11:48:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-12 11:04:17 +0100 |
| commit | 9610f4035114f499d098e8fd2d726d55ddd943ee (patch) | |
| tree | 3d695577e3d73b5edacb7d155315f10a4d8076b5 /src/lib/dcpomatic_time.cc | |
| parent | 66e1735b0b77ee614ccc6ef253ef48036ba2d589 (diff) | |
Templatise TimePeriod and add DCPTimePeriod.
Diffstat (limited to 'src/lib/dcpomatic_time.cc')
| -rw-r--r-- | src/lib/dcpomatic_time.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/dcpomatic_time.cc b/src/lib/dcpomatic_time.cc index 28f766074..49309b1d2 100644 --- a/src/lib/dcpomatic_time.cc +++ b/src/lib/dcpomatic_time.cc @@ -88,15 +88,3 @@ operator<< (ostream& s, DCPTime t) s << "[DCP " << t.get() << " " << t.seconds() << "s]"; return s; } - -bool -ContentTimePeriod::overlaps (ContentTimePeriod const & other) const -{ - return (from < other.to && to > other.from); -} - -bool -ContentTimePeriod::contains (ContentTime const & other) const -{ - return (from <= other && other < to); -} |
