diff --git a/spa/include/spa/debug/pod.h b/spa/include/spa/debug/pod.h index 89bd6edde..4736efc8f 100644 --- a/spa/include/spa/debug/pod.h +++ b/spa/include/spa/debug/pod.h @@ -38,73 +38,6 @@ extern "C" { #define spa_debug(...) ({ fprintf(stderr, __VA_ARGS__);fputc('\n', stderr); }) #endif -#if 0 -static inline int -spa_debug_pod_prop(int indent, const struct spa_type_info *info, struct spa_pod_prop *prop) -{ - void *alt; - int i; - const struct spa_type_info *ti = spa_debug_type_find(info, prop->key); - - spa_debug("%*s" "Prop: key %s, flags %d", indent, "", - ti ? ti->name : "unknown", prop->flags); - - info = ti ? ti->values : info; - - if (prop->flags & SPA_POD_PROP_FLAG_UNSET) - spa_debug("%*s" "Unset (Default):", indent + 2, ""); - else - spa_debug("%*s" "Value: size %u", indent + 2, "", prop->value.size); - - spa_debug_pod_value(indent + 4, info, prop->value.type, SPA_POD_BODY(&prop->value), - prop->value.size); - - i = 0; - switch (prop->flags & SPA_POD_PROP_RANGE_MASK) { - case SPA_POD_PROP_RANGE_NONE: - break; - case SPA_POD_PROP_RANGE_MIN_MAX: - SPA_POD_PROP_ALTERNATIVE_FOREACH(b, size, alt) { - if (i == 0) - spa_debug("%*s" "Min: ", indent + 2, ""); - else if (i == 1) - spa_debug("%*s" "Max: ", indent + 2, ""); - else - break; - spa_debug_pod_value(indent + 4, info, prop->value.type, alt, prop->value.size); - i++; - } - break; - case SPA_POD_PROP_RANGE_STEP: - SPA_POD_PROP_ALTERNATIVE_FOREACH(b, size, alt) { - if (i == 0) - spa_debug("%*s" "Min: ", indent + 2, ""); - else if (i == 1) - spa_debug("%*s" "Max: ", indent + 2, ""); - else if (i == 2) - spa_debug("%*s" "Step: ", indent + 2, ""); - else - break; - spa_debug_pod_value(indent + 4, info, prop->value.type, alt, prop->value.size); - i++; - } - break; - case SPA_POD_PROP_RANGE_ENUM: - SPA_POD_PROP_ALTERNATIVE_FOREACH(b, size, alt) { - if (i == 0) { - spa_debug("%*s" "Enum:", indent + 2, ""); - } - spa_debug_pod_value(indent + 4, info, prop->value.type, alt, prop->value.size); - i++; - } - break; - case SPA_POD_PROP_RANGE_FLAGS: - break; - } - break; -} -#endif - static inline int spa_debug_pod_value(int indent, const struct spa_type_info *info, uint32_t type, void *body, uint32_t size) diff --git a/spa/plugins/alsa/alsa-sink.c b/spa/plugins/alsa/alsa-sink.c index 0db67712c..a1250c132 100644 --- a/spa/plugins/alsa/alsa-sink.c +++ b/spa/plugins/alsa/alsa-sink.c @@ -572,9 +572,6 @@ impl_node_port_set_io(void *object, case SPA_IO_Buffers: this->io = data; break; - case SPA_IO_Clock: - this->clock = data; - break; case SPA_IO_RateMatch: this->rate_match = data; break; diff --git a/spa/plugins/alsa/alsa-source.c b/spa/plugins/alsa/alsa-source.c index 1db77a815..3557881af 100644 --- a/spa/plugins/alsa/alsa-source.c +++ b/spa/plugins/alsa/alsa-source.c @@ -583,9 +583,6 @@ impl_node_port_set_io(void *object, case SPA_IO_Buffers: this->io = data; break; - case SPA_IO_Clock: - this->clock = data; - break; case SPA_IO_RateMatch: this->rate_match = data; break;