diff options
author | Benjamin Otte <otte@gnome.org> | 2008-10-28 12:28:54 +0100 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2008-10-28 12:30:27 +0100 |
commit | 6f504b53ae9e2261f2a5ee36e0c1535ad88b0806 (patch) | |
tree | 3e68b60d2437bc93436d44de9c899e2f68fe0d36 /vivified | |
parent | dec63141882f8b3e09e41d42d736480cd9c42610 (diff) |
delete code that caused compile errors
That makes vivified core even more useless
Diffstat (limited to 'vivified')
-rw-r--r-- | vivified/core/vivi_breakpoint.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/vivified/core/vivi_breakpoint.c b/vivified/core/vivi_breakpoint.c index d83ab6e2..627c3b72 100644 --- a/vivified/core/vivi_breakpoint.c +++ b/vivified/core/vivi_breakpoint.c @@ -90,18 +90,6 @@ static const struct { { "onSetVariable", "set-variable", G_CALLBACK (vivi_breakpoint_set_variable) } }; -static guint -vivi_breakpoint_find_event (const char *name) -{ - guint i; - - for (i = 1; i < G_N_ELEMENTS (events); i++) { - if (g_str_equal (events[i].event, name)) - return i; - } - return 0; -} - static void vivi_breakpoint_add (ViviBreakpoint *breakpoint, guint i) { @@ -128,44 +116,6 @@ vivi_breakpoint_remove (ViviBreakpoint *breakpoint, guint i) } static void -vivi_breakpoint_set (SwfdecAsObject *object, const char *variable, const SwfdecAsValue *val, guint flags) -{ - guint i; - - i = vivi_breakpoint_find_event (variable); - if (i) { - ViviBreakpoint *breakpoint = VIVI_BREAKPOINT (object); - if (SWFDEC_AS_VALUE_IS_OBJECT (val) && - SWFDEC_IS_AS_FUNCTION (SWFDEC_AS_VALUE_GET_OBJECT (val))) { - if (!breakpoint->handlers[i]) - vivi_breakpoint_add (breakpoint, i); - } else { - if (breakpoint->handlers[i]) - vivi_breakpoint_remove (breakpoint, i); - } - } - SWFDEC_AS_OBJECT_CLASS (vivi_breakpoint_parent_class)->set (object, variable, val, flags); -} - -static SwfdecAsDeleteReturn -vivi_breakpoint_delete (SwfdecAsObject *object, const char *variable) -{ - ViviBreakpoint *breakpoint = VIVI_BREAKPOINT (object); - guint i; - SwfdecAsDeleteReturn ret; - - ret = SWFDEC_AS_OBJECT_CLASS (vivi_breakpoint_parent_class)->del (object, variable); - - if (ret == SWFDEC_AS_DELETE_DELETED) { - i = vivi_breakpoint_find_event (variable); - if (i && breakpoint->handlers[i]) - vivi_breakpoint_remove (breakpoint, i); - } - - return ret; -} - -static void vivi_breakpoint_dispose (GObject *object) { ViviBreakpoint *breakpoint = VIVI_BREAKPOINT (object); @@ -179,12 +129,8 @@ static void vivi_breakpoint_class_init (ViviBreakpointClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - SwfdecAsObjectClass *as_object_class = SWFDEC_AS_OBJECT_CLASS (klass); object_class->dispose = vivi_breakpoint_dispose; - - as_object_class->set = vivi_breakpoint_set; - as_object_class->del = vivi_breakpoint_delete; } static void |