Bug 1223804 - remove unused container macro; r=btian
authorNathan Froyd <froydnj@mozilla.com>
Tue, 10 Nov 2015 16:41:18 -0500
changeset 308648 5718492f57f5977b2406017e0b4738bef9a0b1a0
parent 308647 0df5a6f549d415fb52e768529f90599e364fa341
child 308649 00e0498e420064f730086e369f459487f3ae02a5
push id7513
push useratolfsen@mozilla.com
push dateFri, 13 Nov 2015 14:03:43 +0000
reviewersbtian
bugs1223804
milestone45.0a1
Bug 1223804 - remove unused container macro; r=btian
dom/bluetooth/bluedroid/BluetoothDaemonInterface.cpp
--- a/dom/bluetooth/bluedroid/BluetoothDaemonInterface.cpp
+++ b/dom/bluetooth/bluedroid/BluetoothDaemonInterface.cpp
@@ -273,23 +273,16 @@ BluetoothDaemonProtocol::FetchResultHand
 
   return userData.forget();
 }
 
 //
 // Interface
 //
 
-/* returns the container structure of a variable; _t is the container's
- * type, _v the name of the variable, and _m is _v's field within _t
- */
-#define container(_t, _v, _m) \
-  ( (_t*)( ((const unsigned char*)(_v)) - offsetof(_t, _m) ) )
-
-
 static bool
 IsDaemonRunning()
 {
   char value[PROPERTY_VALUE_MAX];
   NS_WARN_IF(property_get("init.svc.bluetoothd", value, "") < 0);
   if (strcmp(value, "running")) {
     BT_LOGR("[RESTART] Bluetooth daemon state <%s>", value);
     return false;