From 82eddf53eac5251074b3a86245edc84991de18e6 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 8 Dec 2010 08:09:30 +0000 Subject: [PATCH] Remove redundant checks in SampleRange::overlaps Originally committed to SVN as r4909. --- aegisub/src/audio_controller.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/aegisub/src/audio_controller.h b/aegisub/src/audio_controller.h index f2408a143..179ec166b 100644 --- a/aegisub/src/audio_controller.h +++ b/aegisub/src/audio_controller.h @@ -105,10 +105,7 @@ public: /// Determine whether there is an overlap between two ranges bool overlaps(const SampleRange &other) const { - return other.contains(_begin) - || other.contains(_end) - || contains(other._begin) - || contains(other._end); + return other.contains(_begin) || contains(other._begin); } };