소스 검색

* small cleanup, remove redundant result assignment and unused variable (from Lagprogramming on forum)

marcoonthegit 2 년 전
부모
커밋
5fd905623d
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      rtl/objpas/sysutils/sysstr.inc

+ 1 - 2
rtl/objpas/sysutils/sysstr.inc

@@ -181,9 +181,8 @@ end;
 {$ENDIF}
 
 function CompareStr(const S1, S2: string): Integer;
-var res,count, count1, count2: SizeInt;
+var count, count1, count2: SizeInt;
 begin
-  result := 0;
   Count1 := Length(S1);
   Count2 := Length(S2);
   if Count1>Count2 then