소스 검색

mac-avcapture: Remove an unused static function

Norihiro Kamae 2 년 전
부모
커밋
f7b37b0832
1개의 변경된 파일0개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 10
      plugins/mac-avcapture/av-capture.mm

+ 0 - 10
plugins/mac-avcapture/av-capture.mm

@@ -903,16 +903,6 @@ static bool init_preset(av_capture *capture, AVCaptureDevice *dev, obs_data_t *s
 static bool operator==(const CMVideoDimensions &a, const CMVideoDimensions &b);
 static CMVideoDimensions get_dimensions(AVCaptureDeviceFormat *format);
 
-static AVCaptureDeviceFormat *find_format(AVCaptureDevice *dev, CMVideoDimensions dims)
-{
-    for (AVCaptureDeviceFormat *format in dev.formats) {
-        if (get_dimensions(format) == dims)
-            return format;
-    }
-
-    return nullptr;
-}
-
 static CMTime convert(media_frames_per_second fps)
 {
     CMTime time {};