forked from mia/Aegisub
Remove redundant checks in SampleRange::overlaps
Originally committed to SVN as r4909.
This commit is contained in:
parent
b134428668
commit
82eddf53ea
1 changed files with 1 additions and 4 deletions
|
@ -105,10 +105,7 @@ public:
|
||||||
/// Determine whether there is an overlap between two ranges
|
/// Determine whether there is an overlap between two ranges
|
||||||
bool overlaps(const SampleRange &other) const
|
bool overlaps(const SampleRange &other) const
|
||||||
{
|
{
|
||||||
return other.contains(_begin)
|
return other.contains(_begin) || contains(other._begin);
|
||||||
|| other.contains(_end)
|
|
||||||
|| contains(other._begin)
|
|
||||||
|| contains(other._end);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue