mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-28 00:35:30 +00:00
Remove unused function create_palette_from_images()
This commit is contained in:
parent
8fbf0854b0
commit
91988de955
@ -370,15 +370,5 @@ void PaletteOptimizer::calculate(Palette* palette, bool hasBackgroundLayer)
|
||||
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
|
||||
|
@ -35,12 +35,6 @@ namespace render {
|
||||
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.
|
||||
Palette* create_palette_from_rgb(
|
||||
const Sprite* sprite,
|
||||
|
Loading…
x
Reference in New Issue
Block a user