Updating profiler old event filtering and unit tests (#624)

This commit is contained in:
Madeline MacDonald
2018-05-29 17:08:59 -07:00
committed by GitHub
parent c87b369426
commit f5efe18e1b
3 changed files with 22 additions and 21 deletions

View File

@@ -129,7 +129,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Profiler
/// Filter the event list to not include previously seen events,
/// and to exclude events that happened before the profiling session began.
/// </summary>
public List<ProfilerEvent> FilterOldEvents(List<ProfilerEvent> events)
public void FilterOldEvents(List<ProfilerEvent> events)
{
if (lastSeenEvent != null)
{
@@ -168,8 +168,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Profiler
// ignore all events before the session began
events.Clear();
}
return events;
}
}
}