public function remove_hooks()
{
remove_filter('extra_theme_headers', array(&$this, 'add_headers'));
remove_filter('extra_plugin_headers', array(&$this, 'add_headers'));
remove_filter('http_request_args', array('Fragen\\GitHub_Updater\\API', 'http_request_args'));
remove_filter('http_response', array('Fragen\\GitHub_Updater\\API', 'wp_update_response'));
if ($this->repo_api instanceof Bitbucket_API) {
$this->repo_api->remove_hooks();
}
}