diff --git a/src/Util/Point.bf b/src/Util/Point.bf index 0d64e83..605eca6 100644 --- a/src/Util/Point.bf +++ b/src/Util/Point.bf @@ -29,18 +29,10 @@ namespace Strawberry public override void ToString(String strBuffer) { - let s = scope String; - - strBuffer.Set("[ "); - - X.ToString(s); - strBuffer.Append(s); - + strBuffer.Set("Point [ "); + X.ToString(strBuffer); strBuffer.Append(", "); - - Y.ToString(s); - strBuffer.Append(s); - + Y.ToString(strBuffer); strBuffer.Append(" ]"); } diff --git a/src/Util/Rect.bf b/src/Util/Rect.bf index cac38e9..67de538 100644 --- a/src/Util/Rect.bf +++ b/src/Util/Rect.bf @@ -113,28 +113,14 @@ namespace Strawberry public override void ToString(String strBuffer) { - let s = scope String; - - strBuffer.Set("[ "); - - X.ToString(s); - strBuffer.Append(s); - + strBuffer.Set("Rect [ "); + X.ToString(strBuffer); strBuffer.Append(", "); - - Y.ToString(s); - strBuffer.Append(s); - + Y.ToString(strBuffer); strBuffer.Append(", "); - - Width.ToString(s); - strBuffer.Append(s); - + Width.ToString(strBuffer); strBuffer.Append(", "); - - Height.ToString(s); - strBuffer.Append(s); - + Height.ToString(strBuffer); strBuffer.Append(" ]"); } diff --git a/src/Util/Vector.bf b/src/Util/Vector.bf index ff5a670..795945f 100644 --- a/src/Util/Vector.bf +++ b/src/Util/Vector.bf @@ -53,18 +53,10 @@ namespace Strawberry public override void ToString(String strBuffer) { - let s = scope String; - - strBuffer.Set("[ "); - - X.ToString(s); - strBuffer.Append(s); - + strBuffer.Set("Vector [ "); + X.ToString(strBuffer); strBuffer.Append(", "); - - Y.ToString(s); - strBuffer.Append(s); - + Y.ToString(strBuffer); strBuffer.Append(" ]"); }