Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2019-03-02 18:57:20 +1000
committerAllan McRae <allan@archlinux.org>2019-03-07 11:12:12 +1000
commitc0e9be7973be6c81b22fde91516fb8991e7bb07b (patch)
tree348b48a19e4ed1ccfb3ca2880add40b69782b0c6 /lib/libalpm/handle.c
parente7bb0f8824a916c1537dd83735cd8aeccdcd0f3f (diff)
Remove support for deltas from libalpm
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.c')
-rw-r--r--lib/libalpm/handle.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index c491d87c..476779c4 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -34,7 +34,6 @@
#include "alpm_list.h"
#include "util.h"
#include "log.h"
-#include "delta.h"
#include "trans.h"
#include "alpm.h"
#include "deps.h"
@@ -44,7 +43,6 @@ alpm_handle_t *_alpm_handle_new(void)
alpm_handle_t *handle;
CALLOC(handle, 1, sizeof(alpm_handle_t), return NULL);
- handle->deltaratio = 0.0;
handle->lockfd = -1;
return handle;
@@ -75,8 +73,6 @@ void _alpm_handle_free(alpm_handle_t *handle)
FREELIST(handle->known_keys);
#endif
- regfree(&handle->delta_regex);
-
/* free memory */
_alpm_trans_free(handle->trans);
FREE(handle->root);
@@ -303,12 +299,6 @@ const char SYMEXPORT *alpm_option_get_arch(alpm_handle_t *handle)
return handle->arch;
}
-double SYMEXPORT alpm_option_get_deltaratio(alpm_handle_t *handle)
-{
- CHECK_HANDLE(handle, return -1);
- return handle->deltaratio;
-}
-
int SYMEXPORT alpm_option_get_checkspace(alpm_handle_t *handle)
{
CHECK_HANDLE(handle, return -1);
@@ -755,16 +745,6 @@ int SYMEXPORT alpm_option_set_arch(alpm_handle_t *handle, const char *arch)
return 0;
}
-int SYMEXPORT alpm_option_set_deltaratio(alpm_handle_t *handle, double ratio)
-{
- CHECK_HANDLE(handle, return -1);
- if(ratio < 0.0 || ratio > 2.0) {
- RET_ERR(handle, ALPM_ERR_WRONG_ARGS, -1);
- }
- handle->deltaratio = ratio;
- return 0;
-}
-
alpm_db_t SYMEXPORT *alpm_get_localdb(alpm_handle_t *handle)
{
CHECK_HANDLE(handle, return NULL);