Ignore split breakage fix.

This commit is contained in:
Lev Dragunov 2017-05-24 14:23:39 +03:00 committed by Patrick Niklaus
parent c21a476b00
commit 45ee096260

View File

@ -156,11 +156,9 @@ SubMatchingList mapMatching(SearchEngineData<Algorithm> &engine_working_data,
{ {
const bool gap_in_trace = [&]() { const bool gap_in_trace = [&]() {
// do not determine split if wasn't asked about it
if (allow_splitting)
{
// use temporal information if available to determine a split // use temporal information if available to determine a split
if (use_timestamps) // but do not determine split by timestamps if wasn't asked about it
if (use_timestamps && allow_splitting)
{ {
return trace_timestamps[t] - trace_timestamps[prev_unbroken_timestamps.back()] > return trace_timestamps[t] - trace_timestamps[prev_unbroken_timestamps.back()] >
max_broken_time; max_broken_time;
@ -169,11 +167,6 @@ SubMatchingList mapMatching(SearchEngineData<Algorithm> &engine_working_data,
{ {
return t - prev_unbroken_timestamps.back() > MAX_BROKEN_STATES; return t - prev_unbroken_timestamps.back() > MAX_BROKEN_STATES;
} }
}
else
{
return false;
}
}(); }();
if (!gap_in_trace) if (!gap_in_trace)