diff --git a/src/tvadapters.c b/src/tvadapters.c deleted file mode 100644 index e68ab61e..00000000 --- a/src/tvadapters.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * TV Adapters - * Copyright (C) 2013 Andreas Ă–man - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include "tvheadend.h" -#include "tvadapters.h" -#include "input/mepgts/linuxdvb.h" - -/** - * - */ -idnode_t ** -tv_adapters_root(void) -{ - dvb_hardware_t *dh; - int cnt = 1; - TAILQ_FOREACH(dh, &dvb_adapters, dh_parent_link) - cnt++; - - idnode_t **v = malloc(sizeof(idnode_t *) * cnt); - cnt = 0; - TAILQ_FOREACH(dh, &dvb_adapters, dh_parent_link) - v[cnt++] = &dh->dh_id; - v[cnt] = NULL; - return v; -} diff --git a/src/tvadapters.h b/src/tvadapters.h deleted file mode 100644 index 56b70525..00000000 --- a/src/tvadapters.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#include "idnode.h" - -idnode_t **tv_adapters_root(void);