Browse Source

* removed/commented out (inited but) unused vars and unused types

Jonas Maebe 25 years ago
parent
commit
39343bf688
3 changed files with 22 additions and 15 deletions
  1. 6 5
      rtl/inc/graph/graph.pp
  2. 12 8
      rtl/inc/graph/gtext.inc
  3. 4 2
      rtl/inc/graph/modes.inc

+ 6 - 5
rtl/inc/graph/graph.pp

@@ -1342,7 +1342,7 @@ var
     TempTerm: graph_float;
     TempTerm: graph_float;
     xtemp, ytemp, xp, yp, xm, ym, xnext, ynext,
     xtemp, ytemp, xp, yp, xm, ym, xnext, ynext,
       plxpyp, plxmyp, plxpym, plxmym: smallint;
       plxpyp, plxmyp, plxpym, plxmym: smallint;
-    BackupColor, DeltaAngle, TmpAngle, OldLineWidth: word;
+    BackupColor, TmpAngle, OldLineWidth: word;
   Begin
   Begin
    If LineInfo.ThickNess = ThickWidth Then
    If LineInfo.ThickNess = ThickWidth Then
     { first draw the two outer ellipses using normwidth and no filling (JM) }
     { first draw the two outer ellipses using normwidth and no filling (JM) }
@@ -1391,8 +1391,6 @@ var
        EndAngle:=StAngle;
        EndAngle:=StAngle;
        Stangle:=TmpAngle;
        Stangle:=TmpAngle;
      end;
      end;
-   { calculate difference of angle now so we don't always have to calculate it }
-   DeltaAngle:= EndAngle-StAngle;
    { approximate the number of pixels required by using the circumference }
    { approximate the number of pixels required by using the circumference }
    { equation of an ellipse.                                              }
    { equation of an ellipse.                                              }
    { Changed this formula a it (trial and error), but the net result is that }
    { Changed this formula a it (trial and error), but the net result is that }
@@ -1958,7 +1956,7 @@ type
   ptw = array[0..2] of longint;
   ptw = array[0..2] of longint;
 var
 var
   k: longint;
   k: longint;
-  oldCurrentColor, color: word;
+  oldCurrentColor: word;
   oldCurrentWriteMode, i, j, y1, x1, deltaX, deltaX1, deltaY: smallint;
   oldCurrentWriteMode, i, j, y1, x1, deltaX, deltaX1, deltaY: smallint;
 Begin
 Begin
 {$ifdef logging}
 {$ifdef logging}
@@ -3048,7 +3046,10 @@ SetGraphBufSize
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.52  1999-12-29 17:26:00  jonas
+  Revision 1.53  2000-01-02 19:02:39  jonas
+    * removed/commented out (inited but) unused vars and unused types
+
+  Revision 1.52  1999/12/29 17:26:00  jonas
     + by default, also attempt to install the fonts that come with TP7
     + by default, also attempt to install the fonts that come with TP7
 
 
   Revision 1.51  1999/12/26 10:33:06  jonas
   Revision 1.51  1999/12/26 10:33:06  jonas

+ 12 - 8
rtl/inc/graph/gtext.inc

@@ -23,11 +23,11 @@
        SIGNATURE   = '+';  { Signature of CHR file               }
        SIGNATURE   = '+';  { Signature of CHR file               }
 
 
     type
     type
-       pbyte = ^byte;
+(*       pbyte = ^byte;
        pword = ^word;
        pword = ^word;
-
+*)
       { Prefix header of Font file }
       { Prefix header of Font file }
-      PFHeader = ^TFHeader;
+{      PFHeader = ^TFHeader;}
       TFHeader = packed record
       TFHeader = packed record
          header_size: word;    {* Version 2.0 Header Format        *}
          header_size: word;    {* Version 2.0 Header Format        *}
          font_name: array[1..4] of char;
          font_name: array[1..4] of char;
@@ -40,7 +40,7 @@
 
 
 
 
       { Font record information }
       { Font record information }
-      PHeader = ^THeader;
+{      PHeader = ^THeader;}
       THeader = packed record
       THeader = packed record
         Signature:  char;     { signature byte                        }
         Signature:  char;     { signature byte                        }
         Nr_chars:   smallint;  { number of characters in file          }
         Nr_chars:   smallint;  { number of characters in file          }
@@ -71,7 +71,7 @@
 
 
 
 
 
 
-      pStroke = ^TStroke;
+{      pStroke = ^TStroke;}
       TStroke = packed record
       TStroke = packed record
         opcode: byte;
         opcode: byte;
         x: smallint;  { relative x offset character }
         x: smallint;  { relative x offset character }
@@ -87,7 +87,7 @@
     var
     var
        fonts : array[1..maxfonts] of tfontrec;
        fonts : array[1..maxfonts] of tfontrec;
        Strokes: TStrokes; {* Stroke Data Base           *}
        Strokes: TStrokes; {* Stroke Data Base           *}
-       Stroke_count: Array[0..MaxChars] of smallint; {* Stroke Count Table *}
+{       Stroke_count: Array[0..MaxChars] of smallint;} {* Stroke Count Table *}
 
 
 {***************************************************************************}
 {***************************************************************************}
 {                         Internal support routines                         }
 {                         Internal support routines                         }
@@ -497,7 +497,8 @@
               for i:=1 to length(textstring) do
               for i:=1 to length(textstring) do
                 begin
                 begin
                    c:=byte(textstring[i]);
                    c:=byte(textstring[i]);
-                   Stroke_Count[c] := unpack( fonts[CurrentTextInfo.font].instr,
+{                   Stroke_Count[c] := }
+                   unpack( fonts[CurrentTextInfo.font].instr,
                      fonts[CurrentTextInfo.font].Offsets[c], Strokes );
                      fonts[CurrentTextInfo.font].Offsets[c], Strokes );
                    counter:=0;
                    counter:=0;
                    while true do
                    while true do
@@ -733,7 +734,10 @@
 
 
 {
 {
 $Log$
 $Log$
-Revision 1.10  1999-12-23 16:48:13  jonas
+Revision 1.11  2000-01-02 19:02:39  jonas
+  * removed/commented out (inited but) unused vars and unused types
+
+Revision 1.10  1999/12/23 16:48:13  jonas
   * turn off IO checking when attempting to open a font file (to avoid RTE)
   * turn off IO checking when attempting to open a font file (to avoid RTE)
 
 
 Revision 1.9  1999/12/20 11:22:36  peter
 Revision 1.9  1999/12/20 11:22:36  peter

+ 4 - 2
rtl/inc/graph/modes.inc

@@ -71,7 +71,6 @@
   {   for reqdriver is returned (JM)                       }
   {   for reqdriver is returned (JM)                       }
   {********************************************************}
   {********************************************************}
     var
     var
-     lastDriver, lastMode: SmallInt;
      list, lastModeInfo: PModeInfo;
      list, lastModeInfo: PModeInfo;
     begin
     begin
 {$ifdef logging}
 {$ifdef logging}
@@ -363,7 +362,10 @@
 
 
 {
 {
 $Log$
 $Log$
-Revision 1.16  1999-12-21 17:42:18  jonas
+Revision 1.17  2000-01-02 19:02:39  jonas
+  * removed/commented out (inited but) unused vars and unused types
+
+Revision 1.16  1999/12/21 17:42:18  jonas
   * changed vesa.inc do it doesn't try to use linear modes anymore (doesn't work
   * changed vesa.inc do it doesn't try to use linear modes anymore (doesn't work
     yet!!)
     yet!!)
   * fixed mode detection so the low modenumber of a driver doesn't have to be zero
   * fixed mode detection so the low modenumber of a driver doesn't have to be zero