[master] 5fb6713 - Remove unused #include statements

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 5fb6713 - Remove unused #include statements "Albrecht Schlosser" 15:02 Mar 22 top right image
 
commit 5fb6713485110ff864dc270437ffa552a7ab5ad3
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Mon Mar 22 22:41:36 2021 +0100
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Mon Mar 22 22:57:24 2021 +0100

    Remove unused #include statements
    
    Cairo is not used in this file, math.h is not necessary, and stdio.h
    is only required if USE_PANGO is false.

 src/drivers/PostScript/Fl_PostScript_image.cxx | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git src/drivers/PostScript/Fl_PostScript_image.cxx src/drivers/PostScript/Fl_PostScript_image.cxx
index e6b2d62..297f1f7 100644
--- src/drivers/PostScript/Fl_PostScript_image.cxx
+++ src/drivers/PostScript/Fl_PostScript_image.cxx
@@ -1,7 +1,7 @@
 //
 // Postscript image drawing implementation for the Fast Light Tool Kit (FLTK).
 //
-// Copyright 1998-2020 by Bill Spitzak and others.
+// Copyright 1998-2021 by Bill Spitzak and others.
 //
 // This library is free software. Distribution and use rights are outlined in
 // the file "COPYING" which should have been included with this file.  If this
@@ -17,19 +17,16 @@
 #include <config.h>
 #if !defined(FL_DOXYGEN) && !defined(FL_NO_PRINT_SUPPORT)
 
-#include <stdio.h>
-#include <math.h>
-#include <string.h>
-#include <stdlib.h>  // abs(int)
-
 #include <FL/Fl_PostScript.H>
 #include "Fl_PostScript_Graphics_Driver.H"
 #include <FL/Fl.H>
 #include <FL/Fl_Pixmap.H>
 #include <FL/Fl_Bitmap.H>
+#include <stdlib.h>  // abs(int)
+#include <string.h>  // memcpy()
 
-#if USE_PANGO
-#include <cairo/cairo.h>
+#if ! USE_PANGO
+#include <stdio.h>   // fprintf()
 #endif
 
 struct callback_data {
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.