From c3d5927d23f9166cec4ff63b73f0906260a15dab Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 4 Dec 2009 21:49:58 +1300 Subject: [PATCH] more --- OpenRa.Game/Chat.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/OpenRa.Game/Chat.cs b/OpenRa.Game/Chat.cs index 5f28a0860b..031a6018f8 100644 --- a/OpenRa.Game/Chat.cs +++ b/OpenRa.Game/Chat.cs @@ -34,15 +34,10 @@ namespace OpenRa.Game typing += c; } - public void AddLine(Pair line) - { - recentLines.Add(line); - while (recentLines.Count > logLength) recentLines.RemoveAt(0); - } - public void AddLine(string from, string text) { - AddLine(Pair.New(from, text)); + recentLines.Add(Pair.New(from, text)); + while (recentLines.Count > logLength) recentLines.RemoveAt(0); } } }