瀏覽代碼

aja: Remove unused variables

PatTheMav 2 年之前
父節點
當前提交
ce9854a11b
共有 3 個文件被更改,包括 0 次插入16 次删除
  1. 0 4
      plugins/aja/aja-output.cpp
  2. 0 6
      plugins/aja/aja-routing.cpp
  3. 0 6
      plugins/aja/aja-widget-io.cpp

+ 0 - 4
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,

+ 0 - 6
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()) {

+ 0 - 6
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)
 {