SD card: remove sd_read_char() also from the simulator.

This is related to the commit
  "SD card: move parsing closer to the metal."
This commit is contained in:
Markus Hitter 2015-07-09 14:02:47 +02:00
parent 8a11a76063
commit 7e649c83dc
1 changed files with 0 additions and 17 deletions

View File

@ -98,21 +98,4 @@ uint8_t sd_read_gcode_line(void) {
return 0; return 0;
} }
/** Read a character from a file.
\return The character read, or zero if there is no such character (e.g. EOF).
*/
uint8_t sd_read_char(void) {
if (!f) {
sim_info("E: file not open");
return 1;
}
char ch = fgetc(f);
if (ch == EOF) {
sim_info("SD card: reached EOF");
return 0;
}
return (uint8_t) ch;
}
#endif /* SD */ #endif /* SD */