mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-17 13:20:45 +00:00
Remove unused local variables
This commit is contained in:
parent
c0697dfcef
commit
3e44399e4b
@ -221,7 +221,6 @@ void ColorBar::onRemapButtonClick()
|
||||
try {
|
||||
ContextWriter writer(UIContext::instance());
|
||||
Sprite* sprite = writer.sprite();
|
||||
frame_t frame = writer.frame();
|
||||
if (sprite) {
|
||||
Transaction transaction(writer.context(), "Remap Colors", ModifyDocument);
|
||||
transaction.execute(new cmd::RemapColors(sprite, *m_remap));
|
||||
|
@ -293,7 +293,6 @@ void PaletteView::onPaint(ui::PaintEvent& ev)
|
||||
ui::Graphics* g = ev.getGraphics();
|
||||
gfx::Rect bounds = getClientBounds();
|
||||
Palette* palette = get_current_palette();
|
||||
gfx::Color bordercolor = gfx::rgba(255, 255, 255);
|
||||
|
||||
g->fillRect(gfx::rgba(0, 0, 0), bounds);
|
||||
|
||||
@ -458,7 +457,6 @@ gfx::Rect PaletteView::getPaletteEntryBounds(int index)
|
||||
gfx::Rect bounds = getClientBounds();
|
||||
div_t d = div(Palette::MaxColors, m_columns);
|
||||
int cols = m_columns;
|
||||
int rows = d.quot + (d.rem ? 1: 0);
|
||||
int col = index % cols;
|
||||
int row = index / cols;
|
||||
|
||||
|
@ -388,8 +388,6 @@ void Tabs::onPaint(PaintEvent& ev)
|
||||
g->fillRect(theme->colors.windowFace(), g->getClipBounds());
|
||||
drawFiller(g, box);
|
||||
|
||||
int startX = m_border*guiscale();
|
||||
|
||||
// For each tab...
|
||||
for (Tab* tab : m_list) {
|
||||
if (tab == m_floatingTab)
|
||||
|
@ -766,7 +766,6 @@ bool Timeline::onProcessMessage(Message* msg)
|
||||
|
||||
case kSetCursorMessage:
|
||||
if (m_document) {
|
||||
gfx::Point mousePos = static_cast<MouseMessage*>(msg)->position();
|
||||
setCursor(msg, m_hot);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user