Remove unused function create_palette_from_images()

This commit is contained in:
David Capello 2015-07-22 14:31:59 -03:00
parent 8fbf0854b0
commit 91988de955
2 changed files with 0 additions and 16 deletions

View File

@ -370,15 +370,5 @@ void PaletteOptimizer::calculate(Palette* palette, bool hasBackgroundLayer)
palette->resize(MAX(1, first_usable_entry+used_colors)); palette->resize(MAX(1, first_usable_entry+used_colors));
} }
void create_palette_from_images(const std::vector<Image*>& images, Palette* palette,
bool hasBackgroundLayer,
bool withAlpha)
{
PaletteOptimizer optimizer;
for (int i=0; i<(int)images.size(); ++i)
optimizer.feedWithImage(images[i], withAlpha);
optimizer.calculate(palette, hasBackgroundLayer);
}
} // namespace render } // namespace render

View File

@ -35,12 +35,6 @@ namespace render {
ColorHistogram<5, 6, 5, 5> m_histogram; ColorHistogram<5, 6, 5, 5> m_histogram;
}; };
void create_palette_from_images(
const std::vector<Image*>& images,
Palette* palette,
bool hasBackgroundLayer,
bool withAlpha);
// Creates a new palette suitable to quantize the given RGB sprite to Indexed color. // Creates a new palette suitable to quantize the given RGB sprite to Indexed color.
Palette* create_palette_from_rgb( Palette* create_palette_from_rgb(
const Sprite* sprite, const Sprite* sprite,