summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_download.c
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:53:45 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:53:45 (EST)
commit08a92571872aaa6d4cb8d43c6170c358f8ef0d94 (patch)
treee9a41af0904d1c8d9d35003e5bc9f088622a8133 /libopkg/opkg_download.c
parent77bfb4c70257f7c85ace0e5ee975e4321fdd667a (diff)
opkg: remove redundant OPKG_LIB conditional code
git-svn-id: http://opkg.googlecode.com/svn/trunk@49 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg_download.c')
-rw-r--r--libopkg/opkg_download.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index 6cce64a..25d177a 100644
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -32,10 +32,8 @@
#include "file_util.h"
#include "str_util.h"
-#ifdef OPKG_LIB
#include "libopkg.h"
opkg_download_progress_callback opkg_cb_download_progress = NULL;
-#endif
int
curl_progress_func (char* url,
@@ -47,7 +45,6 @@ curl_progress_func (char* url,
int i;
int p = (t) ? d*100/t : 0;
-#ifdef OPKG_LIB
if (opkg_cb_download_progress)
{
static int prev = -1;
@@ -61,7 +58,6 @@ curl_progress_func (char* url,
opkg_cb_download_progress (p, url);
return 0;
}
-#endif
/* skip progress bar if we haven't done started yet
* this prevents drawing the progress bar if we receive an error such as