From 0692da0214c4c4aeb0d0adb44f8f270df0a948c1 Mon Sep 17 00:00:00 2001 From: ZEXSM Date: Sat, 10 Feb 2024 13:57:55 +0300 Subject: [PATCH] reivew QBuilder --- src/OData.QueryBuilder/Builders/QBuilder.cs | 24 +-------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/OData.QueryBuilder/Builders/QBuilder.cs b/src/OData.QueryBuilder/Builders/QBuilder.cs index 388c05db..26072820 100644 --- a/src/OData.QueryBuilder/Builders/QBuilder.cs +++ b/src/OData.QueryBuilder/Builders/QBuilder.cs @@ -5,22 +5,10 @@ namespace OData.QueryBuilder.Builders internal class QBuilder { private readonly StringBuilder _builder; - private readonly StringBuilder _templateBuilder; - private readonly bool _includeTemplate; - - public QBuilder(string baseUrl, bool includeTemplate = false) + public QBuilder(string baseUrl) { _builder = new StringBuilder(baseUrl); - _templateBuilder = new StringBuilder(baseUrl); - _includeTemplate = includeTemplate; - } - - public QBuilder(bool includeTemplate = false) - { - _builder = new StringBuilder(); - _templateBuilder = new StringBuilder(); - _includeTemplate = includeTemplate; } public bool IsEmpty() => _builder.Length == 0; @@ -29,11 +17,6 @@ public QBuilder Append(string value) { _builder.Append(value); - if (_includeTemplate) - { - _templateBuilder.Append(value); - } - return this; } @@ -41,11 +24,6 @@ public QBuilder Append(char value) { _builder.Append(value); - if (_includeTemplate) - { - _templateBuilder.Append(value); - } - return this; }