[pulseaudio] 02/02: Revert "Add tagstruct copy method"
David Henningsson
diwic-guest at moszumanska.debian.org
Thu Aug 27 17:13:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
diwic-guest pushed a commit to branch ubuntu
in repository pulseaudio.
commit 71e6a375fb2a8ca8fc442d07deea0f3a7b6628db
Author: David Henningsson <david.henningsson at canonical.com>
Date: Thu Aug 27 19:12:56 2015 +0200
Revert "Add tagstruct copy method"
This reverts commit 07d913cf139937dead5c5ea926383a827c4748f5.
---
src/pulsecore/tagstruct.c | 14 --------------
src/pulsecore/tagstruct.h | 2 --
2 files changed, 16 deletions(-)
diff --git a/src/pulsecore/tagstruct.c b/src/pulsecore/tagstruct.c
index 5db93b2..63134f9 100644
--- a/src/pulsecore/tagstruct.c
+++ b/src/pulsecore/tagstruct.c
@@ -83,20 +83,6 @@ uint8_t* pa_tagstruct_free_data(pa_tagstruct*t, size_t *l) {
return p;
}
-pa_tagstruct *pa_tagstruct_copy(pa_tagstruct*t) {
- pa_tagstruct*tc;
-
- if (!(tc = pa_flist_pop(PA_STATIC_FLIST_GET(tagstructs))))
- tc = pa_xnew(pa_tagstruct, 1);
- tc->data = pa_xmemdup(t->data, t->length);
- tc->allocated = t->length;
- tc->length = t->length;
- tc->rindex = 0;
- tc->dynamic = true;
-
- return tc;
-}
-
static void extend(pa_tagstruct*t, size_t l) {
pa_assert(t);
pa_assert(t->dynamic);
diff --git a/src/pulsecore/tagstruct.h b/src/pulsecore/tagstruct.h
index 55f1ba4..6319ee9 100644
--- a/src/pulsecore/tagstruct.h
+++ b/src/pulsecore/tagstruct.h
@@ -64,8 +64,6 @@ pa_tagstruct *pa_tagstruct_new(const uint8_t* data, size_t length);
void pa_tagstruct_free(pa_tagstruct*t);
uint8_t* pa_tagstruct_free_data(pa_tagstruct*t, size_t *l);
-pa_tagstruct *pa_tagstruct_copy(pa_tagstruct*t);
-
int pa_tagstruct_eof(pa_tagstruct*t);
const uint8_t* pa_tagstruct_data(pa_tagstruct*t, size_t *l);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-pulseaudio/pulseaudio.git
More information about the pkg-pulseaudio-devel
mailing list