Make subtitles work at least a bit.
[dcpomatic.git] / src / lib / types.cc
index 78cb4cd6490990bee12d75526c4a6178530152ff..035c8363db10a1d8ba67c40134811fa9467b4611 100644 (file)
@@ -32,25 +32,3 @@ bool operator!= (Crop const & a, Crop const & b)
        return !(a == b);
 }
 
-
-/** @param other A Rect.
- *  @return The intersection of this with `other'.
- */
-dcpomatic::Rect
-dcpomatic::Rect::intersection (Rect const & other) const
-{
-       int const tx = max (x, other.x);
-       int const ty = max (y, other.y);
-       
-       return Rect (
-               tx, ty,
-               min (x + width, other.x + other.width) - tx,
-               min (y + height, other.y + other.height) - ty
-               );
-}
-
-bool
-dcpomatic::Rect::contains (Position p) const
-{
-       return (p.x >= x && p.x <= (x + width) && p.y >= y && p.y <= (y + height));
-}