mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 06:21:25 +00:00
Remove unused vars from BrushPreview
This commit is contained in:
parent
74ee4dced4
commit
a24f271e3a
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2019-2020 Igara Studio S.A.
|
||||
// Copyright (C) 2019-2021 Igara Studio S.A.
|
||||
// Copyright (C) 2001-2018 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
@ -34,8 +34,8 @@
|
||||
#include "doc/image_impl.h"
|
||||
#include "doc/layer.h"
|
||||
#include "doc/primitives.h"
|
||||
#include "render/render.h"
|
||||
#include "os/display.h"
|
||||
#include "render/render.h"
|
||||
#include "ui/manager.h"
|
||||
#include "ui/system.h"
|
||||
|
||||
@ -410,12 +410,7 @@ void BrushPreview::generateBoundaries()
|
||||
(m_editor->getCurrentEditorTool()->getPointShape(0)->isPixel() ||
|
||||
m_editor->getCurrentEditorTool()->getPointShape(0)->isFloodFill());
|
||||
Image* brushImage = brush->image();
|
||||
int w = (isOnePixel ? 1: brushImage->width());
|
||||
int h = (isOnePixel ? 1: brushImage->height());
|
||||
|
||||
m_brushGen = brush->gen();
|
||||
m_brushWidth = w;
|
||||
m_brushHeight = h;
|
||||
|
||||
Image* mask = nullptr;
|
||||
bool deleteMask = true;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2019-2020 Igara Studio S.A.
|
||||
// Copyright (C) 2019-2021 Igara Studio S.A.
|
||||
// Copyright (C) 2001-2016 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
@ -95,8 +95,6 @@ namespace app {
|
||||
// Information about current brush
|
||||
doc::MaskBoundaries m_brushBoundaries;
|
||||
int m_brushGen;
|
||||
int m_brushWidth;
|
||||
int m_brushHeight;
|
||||
|
||||
std::vector<gfx::Color> m_savedPixels;
|
||||
int m_savedPixelsIterator;
|
||||
|
Loading…
Reference in New Issue
Block a user