From ce9854a11b3fe8f7db2cc070bca601f9d9982de7 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Thu, 16 Feb 2023 20:56:33 +0100 Subject: [PATCH] aja: Remove unused variables --- plugins/aja/aja-output.cpp | 4 ---- plugins/aja/aja-routing.cpp | 6 ------ plugins/aja/aja-widget-io.cpp | 6 ------ 3 files changed, 16 deletions(-) diff --git a/plugins/aja/aja-output.cpp b/plugins/aja/aja-output.cpp index 046d51f5b..02e9f7d90 100644 --- a/plugins/aja/aja-output.cpp +++ b/plugins/aja/aja-output.cpp @@ -917,10 +917,6 @@ bool aja_output_device_changed(void *data, obs_properties_t *props, obs_properties_get(props, kUIPropVideoFormatSelect.id); obs_property_t *pix_fmt_list = obs_properties_get(props, kUIPropPixelFormatSelect.id); - obs_property_t *sdi_trx_list = - obs_properties_get(props, kUIPropSDITransport.id); - obs_property_t *sdi_4k_list = - obs_properties_get(props, kUIPropSDITransport4K.id); const NTV2DeviceID deviceID = cardEntry->GetDeviceID(); populate_io_selection_output_list(cardID, outputID, deviceID, diff --git a/plugins/aja/aja-routing.cpp b/plugins/aja/aja-routing.cpp index 2638ddd02..fe9acf21a 100644 --- a/plugins/aja/aja-routing.cpp +++ b/plugins/aja/aja-routing.cpp @@ -211,11 +211,8 @@ bool Routing::ConfigureSourceRoute(const SourceProps &props, NTV2Mode mode, if (!card) return false; - bool found_preset = false; auto deviceID = props.deviceID; NTV2VideoFormat vf = props.videoFormat; - bool is_hfr = NTV2_IS_HIGH_NTV2FrameRate( - GetNTV2FrameRateFromVideoFormat(props.videoFormat)); auto init_src = props.InitialInputSource(); auto init_channel = props.Channel(); @@ -355,10 +352,7 @@ bool Routing::ConfigureOutputRoute(const OutputProps &props, NTV2Mode mode, if (!card) return false; - bool found_preset = false; auto deviceID = props.deviceID; - bool is_hfr = NTV2_IS_HIGH_NTV2FrameRate( - GetNTV2FrameRateFromVideoFormat(props.videoFormat)); NTV2OutputDestinations outputDests; aja::IOSelectionToOutputDests(props.ioSelect, outputDests); if (outputDests.empty()) { diff --git a/plugins/aja/aja-widget-io.cpp b/plugins/aja/aja-widget-io.cpp index 34f42cbea..18e571dfe 100644 --- a/plugins/aja/aja-widget-io.cpp +++ b/plugins/aja/aja-widget-io.cpp @@ -28,7 +28,6 @@ static const char *kBlackNickname = "black"; static const char *kCompressionNickname = "comp"; static const char *kFrameSyncNickname = "fsync"; static const char *kTestPatternNickname = "pat"; -static const char *kOENickname = "oe"; // Table of firmware widget's input crosspoint/id/channel/name/datastream index // clang-format off @@ -342,11 +341,6 @@ static WidgetOutputSocket kWidgetOutputSockets[] = { }; // clang-format on -static const size_t kNumWidgetInputSockets = - (sizeof(kWidgetInputSockets) / sizeof(WidgetInputSocket)); -static const size_t kNumWidgetOutputSockets = - (sizeof(kWidgetOutputSockets) / sizeof(WidgetOutputSocket)); - bool WidgetInputSocket::Find(const std::string &name, NTV2Channel channel, int32_t datastream, WidgetInputSocket &inp) {