remove unused alpha handling code in octree originally added in 201461e8c9
but made redundant in b3711b07d1
This commit is contained in:
parent
cd3cc31752
commit
2446e573c9
1 changed files with 0 additions and 17 deletions
|
@ -107,7 +107,6 @@ class octree : private boost::noncopyable
|
||||||
unsigned colors_;
|
unsigned colors_;
|
||||||
unsigned offset_;
|
unsigned offset_;
|
||||||
unsigned leaf_level_;
|
unsigned leaf_level_;
|
||||||
bool has_alfa_;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit octree(unsigned max_colors=256)
|
explicit octree(unsigned max_colors=256)
|
||||||
|
@ -115,7 +114,6 @@ public:
|
||||||
colors_(0),
|
colors_(0),
|
||||||
offset_(0),
|
offset_(0),
|
||||||
leaf_level_(InsertPolicy::MAX_LEVELS),
|
leaf_level_(InsertPolicy::MAX_LEVELS),
|
||||||
has_alfa_(false),
|
|
||||||
root_(new node())
|
root_(new node())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -144,16 +142,6 @@ public:
|
||||||
return offset_;
|
return offset_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void hasAlfa(bool v)
|
|
||||||
{
|
|
||||||
has_alfa_=v;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool hasAlfa()
|
|
||||||
{
|
|
||||||
return has_alfa_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void insert(T const& data)
|
void insert(T const& data)
|
||||||
{
|
{
|
||||||
unsigned level = 0;
|
unsigned level = 0;
|
||||||
|
@ -208,11 +196,6 @@ public:
|
||||||
|
|
||||||
void create_palette(std::vector<rgb> & palette)
|
void create_palette(std::vector<rgb> & palette)
|
||||||
{
|
{
|
||||||
if (has_alfa_)
|
|
||||||
{
|
|
||||||
max_colors_--;
|
|
||||||
palette.push_back(rgb(0,0,0));
|
|
||||||
}
|
|
||||||
reduce();
|
reduce();
|
||||||
palette.reserve(colors_);
|
palette.reserve(colors_);
|
||||||
create_palette(palette, root_);
|
create_palette(palette, root_);
|
||||||
|
|
Loading…
Reference in a new issue