瀏覽代碼

* Fix duplicate implementations

michael 7 年之前
父節點
當前提交
2f71f38f31
共有 1 個文件被更改,包括 7 次插入16 次删除
  1. 7 16
      packages/rtl/sysutils.pas

+ 7 - 16
packages/rtl/sysutils.pas

@@ -2610,12 +2610,6 @@ begin
     result := StrToDate(S,ShortDateFormat,separator)
     result := StrToDate(S,ShortDateFormat,separator)
 end;
 end;
 
 
-function StrToDate(const S: String): TDateTime;
-begin
-  result := StrToDate(S,ShortDateFormat,#0);
-end;
-
-
 function StrToDate(const S: String): TDateTime;
 function StrToDate(const S: String): TDateTime;
 begin
 begin
   result := StrToDate(S,ShortDateFormat,#0);
   result := StrToDate(S,ShortDateFormat,#0);
@@ -3187,7 +3181,13 @@ end;
 
 
 function TryStrToDate(const S: String; out Value: TDateTime): Boolean;
 function TryStrToDate(const S: String; out Value: TDateTime): Boolean;
 begin
 begin
-    result := TryStrToDate(S, Value, #0);
+  Result:=TryStrToDate(S,Value,ShortDateFormat,#0);
+end;
+
+function TryStrToDate(const S: String; out Value: TDateTime; separator : char): Boolean;
+
+begin
+  Result:=TryStrToDate(S,Value,ShortDateFormat,Separator);
 end;
 end;
 
 
 function TryStrToDate(const S: String; out Value: TDateTime;
 function TryStrToDate(const S: String; out Value: TDateTime;
@@ -3206,16 +3206,7 @@ begin
 end;
 end;
 
 
 
 
-function TryStrToDate(const S: String; out Value: TDateTime): Boolean;
-begin
-  Result:=TryStrToDate(S,Value,ShortDateFormat,#0);
-end;
 
 
-function TryStrToDate(const S: String; out Value: TDateTime; separator : char): Boolean;
-
-begin
-  Result:=TryStrToDate(S,Value,ShortDateFormat,Separator);
-end;
 
 
 function TryStrToTime(const S: String; out Value: TDateTime; separator : char): Boolean;
 function TryStrToTime(const S: String; out Value: TDateTime; separator : char): Boolean;
 Var
 Var