diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-09 22:54:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-09 22:54:07 +0100 |
| commit | bdbddbe89d4996a39dc6e695f23a6457c03774ae (patch) | |
| tree | 2434303ff9c2f47a258dadb9e499eb4e7b73ef67 /src/lib/util.cc | |
| parent | f08d36982bf940dbd59caf6f24a90c1429fca5f8 (diff) | |
Basic retained-mode-style canvas for timeline; allow selection.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 6c8166143..5e957f923 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -608,22 +608,6 @@ Socket::read_uint32 () return ntohl (v); } -/** @param other A Rect. - * @return The intersection of this with `other'. - */ -Rect -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 - ); -} - /** Round a number up to the nearest multiple of another number. * @param c Index. * @param s Array of numbers to round, indexed by c. |
