Skip to content

Commit fc08e20

Browse files
committed
Revert unrelated change
1 parent 19aa824 commit fc08e20

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

com.unity.netcode.gameobjects/Tests/Runtime/TestHelpers/NetcodeLogAssert.cs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public void LogWasReceived(LogType type, Regex messageRegex)
204204
/// </summary>
205205
/// <param name="type"><see cref="LogType"/> to check for.</param>
206206
/// <param name="message"><see cref="string"/> containing the message to search for.</param>
207-
/// <returns>true if the log was received; false otherwise</returns>
207+
/// <returns><see cref="true"/> or <see cref="false"/></returns>
208208
public bool HasLogBeenReceived(LogType type, string message)
209209
{
210210
var found = false;
@@ -222,29 +222,6 @@ public bool HasLogBeenReceived(LogType type, string message)
222222
return found;
223223
}
224224

225-
/// <summary>
226-
/// Determines if a log message was logged or not.
227-
/// </summary>
228-
/// <param name="type"><see cref="LogType"/> to check for.</param>
229-
/// <param name="pattern"><see cref="Regex"/> containing the pattern to search for.</param>
230-
/// <returns>true if the log was received; false otherwise</returns>
231-
public bool HasLogBeenReceived(LogType type, Regex pattern)
232-
{
233-
var found = false;
234-
lock (m_Lock)
235-
{
236-
foreach (var logEvent in AllLogs)
237-
{
238-
if (logEvent.LogType == type && pattern.IsMatch(logEvent.Message))
239-
{
240-
found = true;
241-
break;
242-
}
243-
}
244-
}
245-
return found;
246-
}
247-
248225
/// <summary>
249226
/// Clears out the log history that is searched.
250227
/// </summary>

0 commit comments

Comments
 (0)