st/gui: Prober or tracking is no longer needed for debug sink

This commit is contained in:
Jakob Bornecrantz 2021-11-19 14:08:48 +00:00
parent 6627049af3
commit be5b9c9d88

View file

@ -396,16 +396,11 @@ on_elem_sink_debug_add(struct u_var_info *info, void *priv)
{
void *ptr = info->ptr;
enum u_var_kind kind = info->kind;
struct gui_program *p = ((struct priv_tuple *)priv)->p;
if (kind != U_VAR_KIND_SINK_DEBUG) {
return;
}
if (p->xp == NULL || p->xp->tracking == NULL) {
return;
}
struct u_sink_debug *usd = (struct u_sink_debug *)ptr;
struct debug_scene *ds = ((struct priv_tuple *)priv)->ds;
struct debug_record *dr = &ds->recs[ds->num_recrs++];