Skip to content

Commit

Permalink
Remove a bunch of useless #include <FL/x.H> directives.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11422 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Mar 25, 2016
1 parent 8e14321 commit 01e9918
Show file tree
Hide file tree
Showing 20 changed files with 4 additions and 27 deletions.
3 changes: 0 additions & 3 deletions FL/Fl_Pixmap.H
Expand Up @@ -22,9 +22,6 @@
#ifndef Fl_Pixmap_H
#define Fl_Pixmap_H
# include "Fl_Image.H"
#if defined(WIN32)
# include "x.H"
#endif

class Fl_Widget;
struct Fl_Menu_Item;
Expand Down
3 changes: 1 addition & 2 deletions FL/Fl_Sys_Menu_Bar.H
Expand Up @@ -19,8 +19,7 @@
#ifndef Fl_Sys_Menu_Bar_H
#define Fl_Sys_Menu_Bar_H

#include "Fl_Menu_Bar.H"
#include "x.H"
#include <FL/Fl_Menu_Bar.H>

#if defined(__APPLE__) || defined(FL_DOXYGEN) // PORTME: Fl_Screen_Driver - system menu bar

Expand Down
5 changes: 2 additions & 3 deletions FL/fl_draw.H
Expand Up @@ -24,13 +24,12 @@
#ifndef fl_draw_H
#define fl_draw_H

#include <FL/x.H> // for Fl_Region
#include <FL/Enumerations.H> // for the color names
#include <FL/Fl_Window.H> // for fl_set_spot()
#include <FL/Fl_Graphics_Driver.H> // for fl_graphics_driver
#include <FL/Fl_Graphics_Driver.H> // for fl_graphics_driver + Fl_Region

// Image class...
class Fl_Image;
class Fl_Window;

// Label flags...
FL_EXPORT extern char fl_draw_shortcut;
Expand Down
1 change: 0 additions & 1 deletion fluid/fluid.cxx
Expand Up @@ -408,7 +408,6 @@ void exit_cb(Fl_Widget *,void *) {
}

#ifdef __APPLE__
# include <FL/x.H>

void
apple_open_cb(const char *c) {
Expand Down
1 change: 0 additions & 1 deletion src/Fl.cxx
Expand Up @@ -34,7 +34,6 @@
#include <FL/Fl_Window_Driver.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Tooltip.H>
#include <FL/x.H>
#include <FL/fl_draw.H>

#include <ctype.h>
Expand Down
1 change: 0 additions & 1 deletion src/Fl_Double_Window.cxx
Expand Up @@ -22,7 +22,6 @@
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Printer.H>
#include <FL/x.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Window_Driver.H>

Expand Down
1 change: 0 additions & 1 deletion src/Fl_Help_View.cxx
Expand Up @@ -49,7 +49,6 @@
#include <FL/Fl_Help_View.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Pixmap.H>
#include <FL/x.H>
#include <stdio.h>
#include <stdlib.h>
#include <FL/fl_utf8.h>
Expand Down
1 change: 0 additions & 1 deletion src/Fl_Image.cxx
Expand Up @@ -19,7 +19,6 @@
#include "config_lib.h"
#include <FL/Fl.H>
#include <FL/fl_draw.H>
#include <FL/x.H>
#include <FL/Fl_Widget.H>
#include <FL/Fl_Menu_Item.H>
#include <FL/Fl_Image.H>
Expand Down
1 change: 0 additions & 1 deletion src/Fl_Menu_Window.cxx
Expand Up @@ -25,7 +25,6 @@

#include <config.h>
#include <FL/Fl.H>
#include <FL/x.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Menu_Window.H>
#include <FL/Fl_Window_Driver.H>
Expand Down
1 change: 0 additions & 1 deletion src/Fl_Overlay_Window.cxx
Expand Up @@ -25,7 +25,6 @@
#include <FL/Fl.H>
#include <FL/Fl_Overlay_Window.H>
#include <FL/fl_draw.H>
#include <FL/x.H>
#include <FL/Fl_Window_Driver.H>


Expand Down
1 change: 0 additions & 1 deletion src/Fl_Pixmap.cxx
Expand Up @@ -25,7 +25,6 @@

#include <FL/Fl.H>
#include <FL/fl_draw.H>
#include <FL/x.H>
#include <FL/Fl_Widget.H>
#include <FL/Fl_Menu_Item.H>
#include <FL/Fl_Pixmap.H>
Expand Down
2 changes: 1 addition & 1 deletion src/Fl_get_key_mac.cxx
Expand Up @@ -20,9 +20,9 @@
// which are actually X keysyms. So this has to translate to macOS
// symbols.

#include <config.h>
#include <FL/Fl.H>
#include <FL/x.H>
#include <config.h>

// The list of Mac OS virtual keycodes appears with OS 10.5 in
// ...../Carbon.framework/Frameworks/HIToolbox.framework/Headers/Events.h
Expand Down
1 change: 0 additions & 1 deletion src/fl_draw_pixmap.cxx
Expand Up @@ -34,7 +34,6 @@

#include <FL/Fl.H>
#include <FL/fl_draw.H>
#include <FL/x.H>
#include <stdio.h>
#include "flstring.h"

Expand Down
1 change: 0 additions & 1 deletion src/fl_font.cxx
Expand Up @@ -21,7 +21,6 @@
#include "flstring.h"
#include <FL/Fl.H>
#include <FL/fl_draw.H>
#include <FL/x.H>
#include "Fl_Font.H"

#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion src/fl_read_image.cxx
Expand Up @@ -16,7 +16,6 @@
// http://www.fltk.org/str.php
//

#include <FL/x.H>
#include <FL/Fl.H>
#include <FL/fl_draw.H>
#include "flstring.h"
Expand Down
1 change: 0 additions & 1 deletion src/fl_rect.cxx
Expand Up @@ -32,7 +32,6 @@
#include <FL/Fl_Widget.H>
#include <FL/Fl_Printer.H>
#include <FL/fl_draw.H>
#include <FL/x.H>

// -----------------------------------------------------------------------------
// all driver code is now in drivers/XXX/Fl_XXX_Graphics_Driver_xyz.cxx
Expand Down
1 change: 0 additions & 1 deletion src/fl_scroll_area.cxx
Expand Up @@ -22,7 +22,6 @@

#include <config.h>
#include <FL/Fl.H>
#include <FL/x.H>
#include <FL/fl_draw.H>
#ifdef __APPLE__
#include "drivers/Quartz/Fl_Quartz_Graphics_Driver.h"
Expand Down
1 change: 0 additions & 1 deletion src/fl_set_font.cxx
Expand Up @@ -20,7 +20,6 @@
// Also see fl_set_fonts.cxx which adds all possible fonts.

#include <FL/Fl.H>
#include <FL/x.H>
#include <FL/fl_draw.H>
#include "flstring.h"
#include "Fl_Font.H"
Expand Down
3 changes: 0 additions & 3 deletions src/fl_shortcut.cxx
Expand Up @@ -40,9 +40,6 @@
#include <stdlib.h>
#include <ctype.h>
#include "flstring.h"
#if !defined(WIN32) && !defined(__APPLE__) // PORTME: Fl_Screen_Driver - platform keyboard feel
#include <FL/x.H>
#endif

#if defined(WIN32) || defined(__APPLE__) // PORTME: Fl_Screen_Driver - platform keyboard feel
#elif defined(FL_PORTING)
Expand Down
1 change: 0 additions & 1 deletion src/fl_vertex.cxx
Expand Up @@ -35,7 +35,6 @@
#include <config.h>
#include "config_lib.h"
#include <FL/fl_draw.H>
#include <FL/x.H>
#include <FL/Fl.H>
#include <FL/math.h>
#include <stdlib.h>
Expand Down

0 comments on commit 01e9918

Please sign in to comment.