mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-04 05:50:15 +00:00
Remove unused variables
This commit is contained in:
parent
1583cd82bd
commit
cff735a7c8
@ -44,8 +44,6 @@ public:
|
||||
}
|
||||
|
||||
void transformPoint(ToolLoop* loop, int x, int y) override {
|
||||
int h = m_brush->bounds().h;
|
||||
|
||||
x += m_brush->bounds().x;
|
||||
y += m_brush->bounds().y;
|
||||
|
||||
|
@ -139,7 +139,6 @@ void BrushPopup::setBrush(Brush* brush)
|
||||
|
||||
void BrushPopup::regenerate(const gfx::Rect& box, const Brushes& brushes)
|
||||
{
|
||||
SkinTheme* theme = static_cast<SkinTheme*>(getTheme());
|
||||
int columns = 3;
|
||||
|
||||
if (m_buttons) {
|
||||
|
@ -138,7 +138,6 @@ private:
|
||||
void openPopup() {
|
||||
ISettings* settings = UIContext::instance()->settings();
|
||||
Tool* currentTool = settings->getCurrentTool();
|
||||
IBrushSettings* brushSettings = settings->getToolSettings(currentTool)->getBrush();
|
||||
doc::BrushRef brush = m_owner->activeBrush();
|
||||
|
||||
m_popupWindow.regenerate(getPopupBox(), m_owner->getBrushes());
|
||||
@ -260,8 +259,6 @@ protected:
|
||||
case 2: type = BrushPattern::PAINT_BRUSH; break;
|
||||
}
|
||||
|
||||
ISettings* settings = UIContext::instance()->settings();
|
||||
Tool* currentTool = settings->getCurrentTool();
|
||||
App::instance()->preferences().brush.pattern(type);
|
||||
}
|
||||
|
||||
|
@ -194,7 +194,6 @@ void Editor::drawBrushPreview(const gfx::Point& pos, bool refresh)
|
||||
gfx::Point spritePos = screenToEditor(pos);
|
||||
|
||||
// Get the current tool
|
||||
tools::Tool* tool = getCurrentEditorTool();
|
||||
tools::Ink* ink = getCurrentEditorInk();
|
||||
|
||||
// Setup the cursor type debrushding of several factors (current tool,
|
||||
@ -393,7 +392,6 @@ bool Editor::doesBrushPreviewNeedSubpixel()
|
||||
|
||||
static void generate_cursor_boundaries(Editor* editor)
|
||||
{
|
||||
tools::Tool* tool = editor->getCurrentEditorTool();
|
||||
Brush* brush = get_current_brush();
|
||||
|
||||
if (!cursor_bound.seg || cursor_bound.brush_image != brush->image()) {
|
||||
|
Loading…
Reference in New Issue
Block a user