From 4d9278f87fffc1d1fe7e6a2f805a2a8df296bb0d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 7 Jun 2011 16:14:35 -0500 Subject: Remove global handle variable Signed-off-by: Dan McGee --- lib/libalpm/alpm.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/libalpm/alpm.c') diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 86b1619a..5d475ce4 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -34,9 +34,6 @@ #include "log.h" #include "util.h" -/* Globals */ -extern pmhandle_t *handle; - /** \addtogroup alpm_interface Interface Functions * @brief Functions to initialize and release libalpm * @{ @@ -86,8 +83,6 @@ pmhandle_t SYMEXPORT *alpm_initialize(const char *root, const char *dbpath, myhandle->curl = curl_easy_init(); #endif - /* TODO temporary until global var removed */ - handle = myhandle; return myhandle; cleanup: @@ -123,9 +118,6 @@ int SYMEXPORT alpm_release(pmhandle_t *myhandle) } _alpm_handle_free(myhandle); - myhandle = NULL; - /* TODO temporary until global var removed */ - handle = NULL; #ifdef HAVE_LIBCURL curl_global_cleanup(); -- cgit v1.2.3-24-g4f1b