dbus.c: DBUS_MSG_RETURN_HANDLE_TYPE_STRING is only used once

So undefine this

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-03-06 11:12:10 +01:00
parent 9a030ba299
commit 77507a2877
1 changed files with 7 additions and 10 deletions

17
dbus.c
View File

@ -315,17 +315,14 @@ a_dbus_convert_value(lua_State *L, int idx, DBusMessageIter *iter)
dbus_message_iter_append_basic(iter, DBUS_TYPE_BOOLEAN, &b);
}
break;
#define DBUS_MSG_RETURN_HANDLE_TYPE_STRING(dbustype) \
case dbustype: \
{ \
const char *s = lua_tostring(L, idx + 1); \
if(!s) \
s = ""; \
dbus_message_iter_append_basic(iter, dbustype, &s); \
} \
case DBUS_TYPE_STRING:
{
const char *s = lua_tostring(L, idx + 1);
if(!s)
s = "";
dbus_message_iter_append_basic(iter, DBUS_TYPE_STRING, &s);
}
break;
DBUS_MSG_RETURN_HANDLE_TYPE_STRING(DBUS_TYPE_STRING)
#undef DBUS_MSG_RETURN_HANDLE_TYPE_STRING
#define DBUS_MSG_RETURN_HANDLE_TYPE_NUMBER(type, dbustype) \
case dbustype: \
{ \