Skip to content

Commit

Permalink
Remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Mar 2, 2024
1 parent c061164 commit cb24224
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions CYD-Klipper/src/ui/gcode_img.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ static unsigned char * data_png = NULL;
static char img_filename_path[256] = {0};
static lv_img_dsc_t img_header = {0};

static void close_button_click(lv_event_t * e){
lv_obj_t * root = (lv_obj_t *)lv_event_get_user_data(e);
lv_obj_del(root);
clear_img_mem();
}

bool has_128_128_gcode(const char* filename)
{
if (filename == NULL){
Expand Down Expand Up @@ -60,7 +54,7 @@ bool has_128_128_gcode(const char* filename)
}

if (chosen_thumb != NULL){
Serial.printf("Found 128x128 PNG gcode img at %s\n", filename);
Serial.printf("Found 32x32 PNG gcode img at %s\n", filename);
strcpy(img_filename_path, chosen_thumb);
return true;
}
Expand Down Expand Up @@ -130,7 +124,7 @@ lv_obj_t* show_gcode_img(const char* filename)
}

if (!has_128_128_gcode(filename)){
Serial.println("No 128x128 gcode img found");
Serial.println("No 32x32 gcode img found");
return NULL;
}

Expand Down

0 comments on commit cb24224

Please sign in to comment.