diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-11-12 20:27:56 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-11-12 20:27:56 +0100 |
| commit | 14f980e4e0ec7eea4d377bfae57fcc70e6842e23 (patch) | |
| tree | f4844bf647d3a0fae785a9eaff295d2fc2890e3e /src/editor.cc | |
| parent | 77272db0fd28af7ee9ade28434c52e628e4d5a32 (diff) | |
move overlaps function to selection.hh
Diffstat (limited to 'src/editor.cc')
| -rw-r--r-- | src/editor.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/editor.cc b/src/editor.cc index 9694b501..36931e80 100644 --- a/src/editor.cc +++ b/src/editor.cc @@ -99,13 +99,6 @@ std::vector<String> Editor::selections_content() const return contents; } -static bool overlaps(const SelectionAndCaptures& lhs, - const SelectionAndCaptures& rhs) -{ - return (lhs.first() <= rhs.first() and lhs.last() >= rhs.first()) or - (lhs.first() <= rhs.last() and lhs.last() >= rhs.last()); -} - static void merge_overlapping(SelectionAndCapturesList& selections) { for (size_t i = 0; i < selections.size(); ++i) |
