log: Remove dead code

This commit is contained in:
Denis Kenzior 2019-11-13 15:34:46 -06:00
parent 17b6c6c314
commit f9204363e0
1 changed files with 0 additions and 9 deletions

View File

@ -276,20 +276,11 @@ void __ofono_log_enable(struct ofono_debug_desc *start,
struct ofono_debug_desc *stop)
{
struct ofono_debug_desc *desc;
const char *name = NULL, *file = NULL;
if (start == NULL || stop == NULL)
return;
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)
desc->flags |= OFONO_DEBUG_FLAG_PRINT;
}