pipewire: core: remove redundant member

`pw_core::core` was initialized to point to itself, it
wasn't changed, and nothing really used it. And the only
user already had a pointer to the core object. So remove it.
This commit is contained in:
Barnabás Pőcze 2023-06-24 19:14:30 +02:00
parent 2abd3432b8
commit 8847b537a4
2 changed files with 1 additions and 3 deletions

View file

@ -24,7 +24,7 @@ static void core_event_ping(void *data, uint32_t id, int seq)
{
struct pw_core *this = data;
pw_log_debug("%p: object %u ping %u", this, id, seq);
pw_core_pong(this->core, id, seq);
pw_core_pong(this, id, seq);
}
static void core_event_done(void *data, uint32_t id, int seq)
@ -321,7 +321,6 @@ static struct pw_core *core_new(struct pw_context *context,
p->context = context;
p->properties = properties;
p->pool = pw_mempool_new(NULL);
p->core = p;
if (user_data_size > 0)
p->user_data = SPA_PTROFF(p, sizeof(struct pw_core), void);
p->proxy.user_data = p->user_data;

View file

@ -1066,7 +1066,6 @@ struct pw_core {
struct pw_properties *properties; /**< extra properties */
struct pw_mempool *pool; /**< memory pool */
struct pw_core *core; /**< proxy for the core object */
struct spa_hook core_listener;
struct spa_hook proxy_core_listener;