From 80e1935b15c1630b304c1ca5c280e3f784888d55 Mon Sep 17 00:00:00 2001 From: Matt Thorson Date: Thu, 7 May 2020 20:35:32 -0700 Subject: [PATCH] Missed files --- src/Util/Point.bf | 14 +++----------- src/Util/Rect.bf | 24 +++++------------------- src/Util/Vector.bf | 14 +++----------- 3 files changed, 11 insertions(+), 41 deletions(-) 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(" ]"); }