Remove unused local variables

This commit is contained in:
David Capello 2015-03-25 16:38:56 -03:00
parent c0697dfcef
commit 3e44399e4b
4 changed files with 0 additions and 6 deletions

View File

@ -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));

View File

@ -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;

View File

@ -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)

View File

@ -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;
}