From 66990f9e57b83ec361fe4a6d765d701643f84820 Mon Sep 17 00:00:00 2001
From: Sandeep Mistry <s.mistry@arduino.cc>
Date: Thu, 21 Jul 2016 16:02:52 -0400
Subject: [PATCH] Remove some stale commented out code

---
 libraries/Wire/Wire.h | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/libraries/Wire/Wire.h b/libraries/Wire/Wire.h
index ddf565bf..f437db89 100644
--- a/libraries/Wire/Wire.h
+++ b/libraries/Wire/Wire.h
@@ -26,8 +26,6 @@
 #include "SERCOM.h"
 #include "RingBuffer.h"
 
-#define BUFFER_LENGTH 32
-
  // WIRE_HAS_END means Wire has end()
 #define WIRE_HAS_END 1
 
@@ -79,35 +77,12 @@ class TwoWire : public Stream
     RingBuffer txBuffer;
     uint8_t txAddress;
 
-
-    // Service buffer
-    //uint8_t srvBuffer[BUFFER_LENGTH];
-    //uint8_t srvBufferIndex;
-    //uint8_t srvBufferLength;
-
     // Callback user functions
     void (*onRequestCallback)(void);
     void (*onReceiveCallback)(int);
 
-    // TWI state
-    //enum TwoWireStatus
-    //{
-    //  UNINITIALIZED,
-    //  MASTER_IDLE,
-    //  MASTER_SEND,
-    //  MASTER_RECV,
-    //  SLAVE_IDLE,
-    //  SLAVE_RECV,
-    //  SLAVE_SEND
-    //};
-    //TwoWireStatus status;
-
     // TWI clock frequency
     static const uint32_t TWI_CLOCK = 100000;
-
-    // Timeouts
-    //static const uint32_t RECV_TIMEOUT = 100000;
-    //static const uint32_t XMIT_TIMEOUT = 100000;
 };
 
 #if WIRE_INTERFACES_COUNT > 0
-- 
GitLab