From a8aaab76239086b8d3bd776c2fa7f478c9995405 Mon Sep 17 00:00:00 2001 From: eadmaster <51NMBsFda0ab1> Date: Fri, 19 Mar 2021 12:46:40 +0100 Subject: [PATCH] cleanup --- tasks/task_patch.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/tasks/task_patch.c b/tasks/task_patch.c index dca5ec2225bc..6a627e9fdce8 100644 --- a/tasks/task_patch.c +++ b/tasks/task_patch.c @@ -827,28 +827,6 @@ bool patch_content( patch_index++; } - /* try to patch "*.ipX" */ - patch_index = 0; - name_ips_indexed[name_ips_len] = '\0'; - name_bps_indexed[name_bps_len] = '\0'; - name_ups_indexed[name_ups_len] = '\0'; - while (patch_index < 10) - { - char index_char = '0' + patch_index; - - name_ips_indexed[name_ips_len] - 1 = index_char; - name_bps_indexed[name_bps_len] - 1 = index_char; - name_ups_indexed[name_ups_len] - 1 = index_char; - - if ( !try_ips_patch(allow_ips, name_ips_indexed, buf, size) - && !try_bps_patch(allow_bps, name_bps_indexed, buf, size) - && !try_ups_patch(allow_ups, name_ups_indexed, buf, size)) - break; - - patch_index++; - } - - free(name_ips_indexed); free(name_bps_indexed); free(name_ups_indexed);