small cleanups

This commit is contained in:
Wim Taymans 2018-10-02 17:37:38 +02:00
parent 1ef1563591
commit 4401e479c6
3 changed files with 0 additions and 19 deletions

View file

@ -281,18 +281,6 @@ impl_node_get_n_ports(struct spa_node *node,
return 0;
}
static inline struct port *iterate_ports(struct impl *this, enum spa_direction direction, uint32_t max, uint32_t *state)
{
for (; (*state & 0xffff) < MAX_PORTS && (*state >> 16) < max; (*state)++) {
struct port *p = &this->ports[direction][(*state) & 0xffff];
if (p->valid) {
(*state) += 0x10001;
return p;
}
}
return NULL;
}
static int collect_ports(struct impl *this, enum spa_direction direction, uint32_t *ids, uint32_t n_ids)
{
int i, idx;

View file

@ -95,10 +95,6 @@ struct impl {
struct spa_buffer **buffers;
uint32_t n_buffers;
struct pw_memblock *mem;
struct {
struct spa_graph_link link;
} rt;
};
/** \endcond */
@ -953,8 +949,6 @@ static void client_node_initialized(void *data)
impl->client_port_mix.io,
sizeof(impl->client_port_mix.io))) < 0)
return;
}
switch (media_type) {

View file

@ -170,7 +170,6 @@ static int suspend_node(struct pw_node *this)
static void node_update_state(struct pw_node *node, enum pw_node_state state, char *error)
{
struct impl *impl = SPA_CONTAINER_OF(node, struct impl, this);
enum pw_node_state old;
struct pw_resource *resource;