mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-29 10:01:41 +00:00
FS-10946: [core] Duplicate code in switch_xml.c #resolve
This commit is contained in:
parent
4719d04706
commit
3563ec1e63
@ -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");
|
"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) {
|
if (time_match && xweek) {
|
||||||
int test = (int) (tm.tm_yday / 7 + 1);
|
int test = (int) (tm.tm_yday / 7 + 1);
|
||||||
time_match = switch_number_cmp(xweek, test);
|
time_match = switch_number_cmp(xweek, test);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user