]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/basicpholder.c
Imported Upstream version 20090110
[ion3.git] / ioncore / basicpholder.c
index 77e863dd877199ebd7a030fc3bafac67defd802a..9689ec49b82e00701e6789bca2124c7a328fbe60 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * ion/ioncore/basicpholder.c
  *
- * Copyright (c) Tuomo Valkonen 2005-2007
+ * Copyright (c) Tuomo Valkonen 2005-2009
  *
  * See the included file LICENSE for details.
  */
 /*{{{ Init/deinit */
 
 
-static void basicpholder_watch_handler(Watch *watch, Obj *reg)
-{
-    WBasicPHolder *ph=FIELD_TO_STRUCT(WBasicPHolder, reg_watch, watch);
-    pholder_redirect(&(ph->ph), (WRegion*)reg);
-}
-
-
 bool basicpholder_init(WBasicPHolder *ph, WRegion *reg, 
                        WBasicPHolderHandler *hnd)
 {
@@ -32,7 +25,7 @@ bool basicpholder_init(WBasicPHolder *ph, WRegion *reg,
 
     watch_init(&(ph->reg_watch));
     
-    if(!watch_setup(&(ph->reg_watch), (Obj*)reg, basicpholder_watch_handler)){
+    if(!watch_setup(&(ph->reg_watch), (Obj*)reg, NULL)){
         pholder_deinit(&(ph->ph));
         return FALSE;
     }