From 08a92571872aaa6d4cb8d43c6170c358f8ef0d94 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Sun, 14 Dec 2008 23:53:45 -0500 Subject: opkg: remove redundant OPKG_LIB conditional code git-svn-id: http://opkg.googlecode.com/svn/trunk@49 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg_download.c') 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 -- cgit v0.9.1