]> Pileus Git - ~andy/gtk/commit
clipboard: remove dead code
authorAleksander Morgado <aleksander@lanedo.com>
Fri, 1 Mar 2013 10:54:09 +0000 (11:54 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Mar 2013 00:37:38 +0000 (19:37 -0500)
commitd98b4fd0b433d56f7b2148f617baf212014a3b3e
tree47794415bb9222ad4d8bc9a22df69562d153fe30
parent670e532a6ba528f3b1b9a359a05cec80da94ebd9
clipboard: remove dead code

When setting contents of the clipboard and ownership or user data changes, we
end up calling clipboard_unset() to fully cleanup the previous clipboard state.
This call will itself call clear_func() for the previous user_data, and always
reset both 'get_func' and 'clear_func' to NULL.

So it's actually not possible to have 'get_func' being non-NULL once we have
called clipboard_unset(), so just remove that condition check and the code
inside.

https://bugzilla.gnome.org/show_bug.cgi?id=694924
gtk/gtkclipboard.c