Explorar o código

mac-syphon: Remove unused OBSSyphonKVObserver

gxalpha %!s(int64=2) %!d(string=hai) anos
pai
achega
1edd997c49
Modificáronse 1 ficheiros con 0 adicións e 24 borrados
  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");