소스 검색

mac-syphon: Remove unused OBSSyphonKVObserver

gxalpha 2 년 전
부모
커밋
1edd997c49
1개의 변경된 파일0개의 추가작업 그리고 24개의 파일을 삭제
  1. 0 24
      plugins/mac-syphon/syphon.m

+ 0 - 24
plugins/mac-syphon/syphon.m

@@ -41,30 +41,6 @@ static inline void update_properties(syphon_t s)
     obs_source_update_properties(s->source);
 }
 
-@interface OBSSyphonKVObserver : NSObject
-- (void)observeValueForKeyPath:(NSString *)keyPath
-                      ofObject:(id)object
-                        change:(NSDictionary *)change
-                       context:(void *)context;
-@end
-
-@implementation OBSSyphonKVObserver
-- (void)observeValueForKeyPath:(NSString *)keyPath
-                      ofObject:(id)object
-                        change:(NSDictionary *)change
-                       context:(void *)context
-{
-    syphon_t s = context;
-    if (!s)
-        return;
-
-    if (!change[NSKeyValueChangeNewKey])
-        return;
-
-    update_properties(s);
-}
-@end
-
 static const char *syphon_get_name(void *unused __attribute((unused)))
 {
     return obs_module_text("Syphon");