Skip to content

Commit

Permalink
Refactor|HEdge: Removed HEdge's now unused copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed May 29, 2013
1 parent 0fd0440 commit 39cb569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
4 changes: 3 additions & 1 deletion doomsday/client/include/map/hedge.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class Sector;
*/
class HEdge : public de::MapElement
{
DENG2_NO_COPY(HEdge)
DENG2_NO_ASSIGN(HEdge)

public:
/// Required BSP leaf is missing. @ingroup errors
DENG2_ERROR(MissingBspLeafError);
Expand Down Expand Up @@ -105,7 +108,6 @@ class HEdge : public de::MapElement

public:
HEdge(Vertex &vertex, Line::Side *lineSide = 0);
HEdge(HEdge const &other);
~HEdge();

/**
Expand Down
19 changes: 0 additions & 19 deletions doomsday/client/src/map/hedge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,6 @@ HEdge::HEdge(Vertex &vertex, Line::Side *lineSide)
d->lineSide = lineSide;
}

HEdge::HEdge(HEdge const &other)
: MapElement(DMU_HEDGE), d(new Instance(this))
{
_vertex = other._vertex;
_next = other._next;
_prev = other._prev;
_twin = other._twin;
_bspLeaf = other._bspLeaf;
_angle = other._angle;
_length = other._length;
_lineOffset = other._lineOffset;
#ifdef __CLIENT__
std::memcpy(_bsuf, other._bsuf, sizeof(_bsuf));
#endif
_flags = other._flags;

d->lineSide = other.d->lineSide;
}

HEdge::~HEdge()
{
#ifdef __CLIENT__
Expand Down

0 comments on commit 39cb569

Please sign in to comment.