From 8708fb44657de7d8904aac508c0f2b340bda9bed Mon Sep 17 00:00:00 2001 From: Qian Xu Date: Sun, 23 Nov 2014 01:10:00 +0800 Subject: [PATCH] Removed unnecessary helper function `IfValue` is a duplicate of `System.StrUtils.IfThen`. --- lib/delphi/src/Thrift.Utils.pas | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/delphi/src/Thrift.Utils.pas b/lib/delphi/src/Thrift.Utils.pas index 58ffe792128..5c3d8a5cadb 100644 --- a/lib/delphi/src/Thrift.Utils.pas +++ b/lib/delphi/src/Thrift.Utils.pas @@ -49,21 +49,8 @@ TOverlappedHelperImpl = class( TInterfacedObject, IOverlappedHelper) end; - -function IfValue(B: Boolean; const TrueValue, FalseValue: WideString): string; - implementation - -function IfValue(B: Boolean; const TrueValue, FalseValue: WideString): string; -begin - if B then - Result := TrueValue - else - Result := FalseValue; -end; - - { TOverlappedHelperImpl } constructor TOverlappedHelperImpl.Create;