]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10946: [core] Duplicate code in switch_xml.c #resolve
authorBrian West <brian@freeswitch.org>
Thu, 8 Feb 2018 21:16:32 +0000 (15:16 -0600)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:48 +0000 (07:21 +0000)
src/switch_xml.c

index 0dffbd4b8c8d6acf5410c9f5153f27f77d7de98a..a815c920393c6be38b9c716abae40ac801209d5b 100644 (file)
@@ -3112,12 +3112,6 @@ SWITCH_DECLARE(int) switch_xml_std_datetime_check(switch_xml_t xcond, int *offse
                                "XML DateTime Check: day of month[%d] =~ %s (%s)\n", test, xmday, time_match ? "PASS" : "FAIL");
        }
 
-       if (time_match && xweek) {
-               int test = (int) (tm.tm_yday / 7 + 1);
-               time_match = switch_number_cmp(xweek, test);
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG9,
-                               "XML DateTime Check: week of year[%d] =~ %s (%s)\n", test, xweek, time_match ? "PASS" : "FAIL");
-       }
        if (time_match && xweek) {
                int test = (int) (tm.tm_yday / 7 + 1);
                time_match = switch_number_cmp(xweek, test);