mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Remove unused variables (fourth pass) + dead code
Also fix a potential regression from 3fcb9b1ec1.
This commit is contained in:
parent
d8c31e0e74
commit
f40f360a2c
32 changed files with 12 additions and 175 deletions
|
|
@ -59,7 +59,6 @@ int Image::MCBlock::get_longest_axis_index() const {
|
|||
for(int i=0;i<4;i++) {
|
||||
|
||||
int d = max_color.color.col[i]-min_color.color.col[i];
|
||||
//printf(" ai:%i - %i\n",i,d);
|
||||
if (d>max_dist) {
|
||||
max_index=i;
|
||||
max_dist=d;
|
||||
|
|
@ -71,13 +70,11 @@ int Image::MCBlock::get_longest_axis_index() const {
|
|||
int Image::MCBlock::get_longest_axis_length() const {
|
||||
|
||||
int max_dist=-1;
|
||||
int max_index=0;
|
||||
|
||||
for(int i=0;i<4;i++) {
|
||||
|
||||
int d = max_color.color.col[i]-min_color.color.col[i];
|
||||
if (d>max_dist) {
|
||||
max_index=i;
|
||||
max_dist=d;
|
||||
}
|
||||
}
|
||||
|
|
@ -117,8 +114,6 @@ void Image::MCBlock::shrink() {
|
|||
|
||||
void Image::quantize() {
|
||||
|
||||
Image::Format orig_format=format;
|
||||
|
||||
bool has_alpha = detect_alpha()!=ALPHA_NONE;
|
||||
|
||||
bool quantize_fast=OS::get_singleton()->has_environment("QUANTIZE_FAST");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue