Drop redundant "simulator.h" includes.

simulator.h is already included in config.h/arduino.h, so it doesn't
need to be included again most of the time. In some cases it was
included twice on purpose to undo some intervening include file, but
these intervening includes were unnecessary. Remove some related
include file redundancy by re-ordering the include files and relocating
some nested includes up to the parent .c file.
This commit is contained in:
Phil Hord 2015-07-27 15:50:49 -04:00 committed by Markus Hitter
parent 11e907de03
commit 592df2c73f
5 changed files with 1 additions and 7 deletions

View File

@ -14,9 +14,6 @@
#include "sersendf.h"
#include "gcode_process.h"
#ifdef SIMULATOR
#include "simulator.h"
#endif
/** Bitfield for available sources of G-code.

View File

@ -3,7 +3,6 @@
#include "config_wrapper.h"
#include <stdint.h>
#include "simulator.h"
#include "temp.h"
/// Default scaled P factor, equivalent to 8.0 counts/qC or 32 counts/C.

View File

@ -46,7 +46,6 @@
#include "spi.h"
#include "sd.h"
#include "display.h"
#include "simulator.h"
#ifdef SIMINFO
#include "../simulavr/src/simulavr_info.h"

View File

@ -3,7 +3,7 @@
#include "config_wrapper.h"
#include <stdint.h>
#include "simulator.h"
#ifdef USB_SERIAL
#include "usb_serial.h"

View File

@ -32,7 +32,6 @@
// 2012-10-17: Import to Teacup firmware
#include "config_wrapper.h"
#include "simulator.h"
/* protect this file from Arduino IDE */
#ifdef USB_SERIAL