From 0b3142b45b2862e4bd3f35dcf7fd07941086aa7e Mon Sep 17 00:00:00 2001
From: Scott Lahteine <sourcetree@thinkyhead.com>
Date: Wed, 8 Jun 2016 17:03:45 -0700
Subject: [PATCH] Remove redundant declarations from M100 code

---
 Marlin/M100_Free_Mem_Chk.cpp | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/Marlin/M100_Free_Mem_Chk.cpp b/Marlin/M100_Free_Mem_Chk.cpp
index 36e01ae6cd..521b759e36 100644
--- a/Marlin/M100_Free_Mem_Chk.cpp
+++ b/Marlin/M100_Free_Mem_Chk.cpp
@@ -47,21 +47,6 @@ extern void* __brkval;
 extern size_t  __heap_start, __heap_end, __flp;
 
 
-//
-// Declare all the functions we need from Marlin_Main.cpp to do the work!
-//
-
-int code_value_int();
-bool code_seen(char);
-void serial_echopair_P(const char*, float);
-void serial_echopair_P(const char*, double);
-void serial_echopair_P(const char*, unsigned long);
-void serial_echopair_P(const char*, int);
-void serial_echopair_P(const char*, long);
-
-
-
-
 //
 // Utility functions used by M100 to get its work done.
 //
@@ -175,8 +160,7 @@ void gcode_M100() {
   //
 #if ENABLED(M100_FREE_MEMORY_CORRUPTOR)
   if (code_seen('C')) {
-    int x;      // x gets the # of locations to corrupt within the memory pool
-    x = code_value_int();
+    int x = code_value_int(); // x gets the # of locations to corrupt within the memory pool
     SERIAL_ECHOLNPGM("Corrupting free memory block.\n");
     ptr = (unsigned char*) __brkval;
     SERIAL_ECHOPAIR("\n__brkval : ", ptr);