[smuxi: 40/111] Engine(-Test): removed MessageBuilder.AppendRichText()



commit c652e3550e8c0024aa15f7573eac97f8f68f565f
Author: Mirco Bauer <meebey meebey net>
Date:   Fri Jan 3 03:48:24 2014 +0100

    Engine(-Test): removed MessageBuilder.AppendRichText()

 src/Engine-Tests/MessageParserTests.cs |    6 +++---
 src/Engine/Messages/MessageBuilder.cs  |    6 ------
 2 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/src/Engine-Tests/MessageParserTests.cs b/src/Engine-Tests/MessageParserTests.cs
index 078ded7..1852934 100644
--- a/src/Engine-Tests/MessageParserTests.cs
+++ b/src/Engine-Tests/MessageParserTests.cs
@@ -36,7 +36,7 @@ namespace Smuxi.Engine
 
             builder = new MessageBuilder();
             builder.TimeStamp = DateTime.MinValue;
-            builder.AppendRichText("http://example.com";);
+            builder.AppendMessage("http://example.com";);
             var actualMsg = builder.ToMessage();
 
             Assert.AreEqual(expectedMsg, actualMsg);
@@ -54,7 +54,7 @@ namespace Smuxi.Engine
 
             builder = new MessageBuilder();
             builder.TimeStamp = DateTime.MinValue;
-            builder.AppendRichText("foo <http://example.com> bar");
+            builder.AppendMessage("foo <http://example.com> bar");
             var actualMsg = builder.ToMessage();
 
             Assert.AreEqual(expectedMsg, actualMsg);
@@ -72,7 +72,7 @@ namespace Smuxi.Engine
 
             builder = new MessageBuilder();
             builder.TimeStamp = DateTime.MinValue;
-            builder.AppendRichText("foo (http://example.com) bar");
+            builder.AppendMessage("foo (http://example.com) bar");
             var actualMsg = builder.ToMessage();
 
             Assert.AreEqual(expectedMsg, actualMsg);
diff --git a/src/Engine/Messages/MessageBuilder.cs b/src/Engine/Messages/MessageBuilder.cs
index 87041e6..bfae7be 100644
--- a/src/Engine/Messages/MessageBuilder.cs
+++ b/src/Engine/Messages/MessageBuilder.cs
@@ -273,14 +273,8 @@ namespace Smuxi.Engine
             return AppendText(CreateHeader(text, args));
         }
 
-        [Obsolete("AppendMessage() is deprecated, use AppendRichText() instead")]
         public virtual MessageBuilder AppendMessage(string msg)
         {
-            return AppendRichText(msg);
-        }
-
-        public virtual MessageBuilder AppendRichText(string msg)
-        {
             return Append(ParseSmartLinks(CreateText(msg)));
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]