Remove comments and printMap()

This commit is contained in:
Kranklyboy 2018-04-15 16:26:44 +02:00
parent 1b63c17fd7
commit 234ea6130f

View File

@ -6,7 +6,6 @@
* @brief Client for OSUE exercise 1B `Battleship'. * @brief Client for OSUE exercise 1B `Battleship'.
*/ */
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <stdint.h> #include <stdint.h>
@ -290,17 +289,6 @@ static void makeHit(void)
markSunk(); markSunk();
} }
static void printMap(void)
{
for (int y = 0; y < MAP_SIZE; y++) {
for (int x = 0; x < MAP_SIZE; x++) {
fprintf(stdout, "%d\t", field[x][y]);
}
fprintf(stdout, "\n");
}
fprintf(stdout, "\n");
}
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
struct sigaction sa; struct sigaction sa;