Skip to content

Commit

Permalink
Remove unused SelectionTest::TestLines()
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Mott committed May 19, 2022
1 parent 3dbd3e2 commit 5088f3b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion include/iselectiontest.h
Expand Up @@ -231,7 +231,6 @@ class SelectionTest
virtual void TestPoint(const Vector3& point, SelectionIntersection& best) = 0;
virtual void TestPolygon(const VertexPointer& vertices, std::size_t count, SelectionIntersection& best) = 0;
virtual void TestLineStrip(const VertexPointer& vertices, std::size_t count, SelectionIntersection& best) = 0;
virtual void TestLines(const VertexPointer& vertices, std::size_t count, SelectionIntersection& best) = 0;
virtual void TestTriangles(const VertexPointer& vertices, const IndexPointer& indices, SelectionIntersection& best) = 0;
virtual void TestQuads(const VertexPointer& vertices, const IndexPointer& indices, SelectionIntersection& best) = 0;
virtual void TestQuadStrip(const VertexPointer& vertices, const IndexPointer& indices, SelectionIntersection& best) = 0;
Expand Down
12 changes: 0 additions & 12 deletions libs/selection/SelectionVolume.h
Expand Up @@ -90,18 +90,6 @@ class SelectionVolume :
}
}

void TestLines(const VertexPointer& vertices, std::size_t count, SelectionIntersection& best) override
{
if (count == 0)
return;
Vector4 clipped[9];
for (VertexPointer::iterator i = vertices.begin(), end = i + count; i != end; i += 2)
{
BestPoint(clipLine(_local2view, *i, *(i + 1), clipped), clipped,
best, _cull);
}
}

void TestTriangles(const VertexPointer& vertices, const IndexPointer& indices, SelectionIntersection& best) override
{
Vector4 clipped[9];
Expand Down
3 changes: 1 addition & 2 deletions radiantcore/selection/manipulators/RotateManipulator.cpp
Expand Up @@ -4,6 +4,7 @@
#include "selection/SelectionPool.h"
#include "selection/BestPoint.h"
#include "selection/TransformationVisitors.h"
#include "registry/registry.h"
#include <fmt/format.h>

namespace selection
Expand Down Expand Up @@ -198,7 +199,6 @@ void RotateManipulator::testSelect(SelectionTest& test, const Matrix4& pivot2wor
}
else
{
{
{
Matrix4 local2view(test.getVolume().GetViewProjection().getMultipliedBy(_local2worldX));

Expand All @@ -222,7 +222,6 @@ void RotateManipulator::testSelect(SelectionTest& test, const Matrix4& pivot2wor
LineStrip_BestPoint(local2view, &_circleZ.getRawPoints().front(), _circleZ.getRawPoints().size(), best);
selector.addSelectable(best, &_selectableZ);
}
}

{
Matrix4 local2view(test.getVolume().GetViewProjection().getMultipliedBy(_pivot2World._viewpointSpace));
Expand Down

0 comments on commit 5088f3b

Please sign in to comment.