Skip to content

Commit b7c932a

Browse files
committed
remove unused logic
1 parent 812d346 commit b7c932a

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

examples/server/main.cpp

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -672,15 +672,8 @@ int main(int argc, const char** argv) {
672672
std::vector<sd_image_t> ref_images;
673673
ref_images.reserve(images_bytes.size());
674674
for (auto& bytes : images_bytes) {
675-
676-
int expected_width = 0;
677-
int expected_height = 0;
678-
if (gen_params.width_and_height_are_set()) {
679-
expected_width = gen_params.width;
680-
expected_height = gen_params.height;
681-
}
682-
int img_w = expected_width;
683-
int img_h = expected_height;
675+
int img_w;
676+
int img_h;
684677

685678
uint8_t* raw_pixels = load_image_from_memory(
686679
reinterpret_cast<const char*>(bytes.data()),
@@ -705,8 +698,8 @@ int main(int argc, const char** argv) {
705698
expected_width = gen_params.width;
706699
expected_height = gen_params.height;
707700
}
708-
int mask_w = expected_width;
709-
int mask_h = expected_height;
701+
int mask_w;
702+
int mask_h;
710703

711704
uint8_t* mask_raw = load_image_from_memory(
712705
reinterpret_cast<const char*>(mask_bytes.data()),
@@ -978,8 +971,8 @@ int main(int argc, const char** argv) {
978971
expected_width = gen_params.width;
979972
expected_height = gen_params.height;
980973
}
981-
int img_w = expected_width;
982-
int img_h = expected_height;
974+
int img_w;
975+
int img_h;
983976

984977
uint8_t* raw_data = load_image_from_memory(
985978
(const char*)img_data.data(), (int)img_data.size(),

0 commit comments

Comments
 (0)