From a24f271e3a3532aae923f677cab7ef71df0938b6 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 25 Feb 2021 14:44:07 -0300 Subject: [PATCH] Remove unused vars from BrushPreview --- src/app/ui/editor/brush_preview.cpp | 9 ++------- src/app/ui/editor/brush_preview.h | 4 +--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/app/ui/editor/brush_preview.cpp b/src/app/ui/editor/brush_preview.cpp index 267a58467..6b77c4e40 100644 --- a/src/app/ui/editor/brush_preview.cpp +++ b/src/app/ui/editor/brush_preview.cpp @@ -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; diff --git a/src/app/ui/editor/brush_preview.h b/src/app/ui/editor/brush_preview.h index e54308732..736d1b998 100644 --- a/src/app/ui/editor/brush_preview.h +++ b/src/app/ui/editor/brush_preview.h @@ -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 m_savedPixels; int m_savedPixelsIterator;