Преглед изворни кода

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

marcoonthegit пре 2 година
родитељ
комит
6a33f68fca
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      rtl/objpas/sysutils/sysstr.inc

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

@@ -180,9 +180,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