Skip to content

Commit

Permalink
Removed unsed mIsInfinite from WangFiller
Browse files Browse the repository at this point in the history
  • Loading branch information
Bdtrotte authored and bjorn committed Aug 20, 2017
1 parent f61388a commit fafa696
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/tiled/bucketfilltool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ void BucketFillTool::wangFill(TileLayer &tileLayerToFill,
return;

WangFiller wangFiller(mWangSet,
mapDocument()->map()->infinite(),
dynamic_cast<StaggeredRenderer *>(mapDocument()->renderer()),
mapDocument()->map()->staggerAxis());

Expand Down
1 change: 0 additions & 1 deletion src/tiled/stampbrush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,6 @@ void StampBrush::drawPreviewLayer(const QVector<QPoint> &list)
bounds.width(), bounds.height()));

WangFiller wangFiller(mWangSet,
mapDocument()->map()->infinite(),
dynamic_cast<StaggeredRenderer *>(mapDocument()->renderer()),
mapDocument()->map()->staggerAxis());

Expand Down
2 changes: 0 additions & 2 deletions src/tiled/wangfiller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ static const QPoint aroundTilePoints[] = {
};

WangFiller::WangFiller(WangSet *wangSet,
bool isInfinite,
StaggeredRenderer *staggeredRenderer,
Map::StaggerAxis staggerAxis)
: mWangSet(wangSet)
, mIsInfinite(isInfinite)
, mStaggeredRenderer(staggeredRenderer)
, mStaggerAxis(staggerAxis)
{
Expand Down
4 changes: 1 addition & 3 deletions src/tiled/wangfiller.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ namespace Internal {
class WangFiller
{
public:
explicit WangFiller(WangSet *wangSet,
bool isInfinite, //the map we are filling to is infinite.
explicit WangFiller(WangSet *wangSet, //the map we are filling to is infinite.
StaggeredRenderer *staggeredRenderer = nullptr,
Map::StaggerAxis staggerAxis = Map::StaggerX);

Expand Down Expand Up @@ -92,7 +91,6 @@ class WangFiller
QPoint point) const;

WangSet *mWangSet;
bool mIsInfinite;
StaggeredRenderer *mStaggeredRenderer;
Map::StaggerAxis mStaggerAxis;
};
Expand Down

0 comments on commit fafa696

Please sign in to comment.