mirror of git://git.sysmocom.de/ofono
log: Remove dead code
This commit is contained in:
parent
17b6c6c314
commit
f9204363e0
|
@ -276,20 +276,11 @@ void __ofono_log_enable(struct ofono_debug_desc *start,
|
||||||
struct ofono_debug_desc *stop)
|
struct ofono_debug_desc *stop)
|
||||||
{
|
{
|
||||||
struct ofono_debug_desc *desc;
|
struct ofono_debug_desc *desc;
|
||||||
const char *name = NULL, *file = NULL;
|
|
||||||
|
|
||||||
if (start == NULL || stop == NULL)
|
if (start == NULL || stop == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (desc = start; desc < stop; desc++) {
|
for (desc = start; desc < stop; desc++) {
|
||||||
if (file != NULL || name != NULL) {
|
|
||||||
if (g_strcmp0(desc->file, file) == 0) {
|
|
||||||
if (desc->name == NULL)
|
|
||||||
desc->name = name;
|
|
||||||
} else
|
|
||||||
file = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_enabled(desc) == TRUE)
|
if (is_enabled(desc) == TRUE)
|
||||||
desc->flags |= OFONO_DEBUG_FLAG_PRINT;
|
desc->flags |= OFONO_DEBUG_FLAG_PRINT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue