Bug 1223804 - remove unused container macro; r=btian
--- 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;