diff options
author | Nick White <arch@njw.me.uk> | 2008-04-03 00:42:00 +0000 |
---|---|---|
committer | Nick White <arch@njw.me.uk> | 2008-04-03 00:42:00 +0000 |
commit | f85c3b947985ad0cdaec0197dea8e077c9d5f6d7 (patch) | |
tree | f23d297e2265505f4aa53ae07ca3008d9b36d256 /src/issuemem.c | |
parent | b37c74e3fa320ffd23e31c10954243280f7d127d (diff) |
Removed all media handling code
This patch has no new features. It just removes all of the
media handling code. It was proving too hard to maintain, and
lots of it is now available at the website anyway.
git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-34
Diffstat (limited to 'src/issuemem.c')
-rw-r--r-- | src/issuemem.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/issuemem.c b/src/issuemem.c index 63fe5b4..d4f922f 100644 --- a/src/issuemem.c +++ b/src/issuemem.c @@ -107,30 +107,6 @@ it ** assignnew_it(it ** item, int * no_of_items) return tmp; } -med ** assignnew_med(med ** media, int * no_of_media) -{ - med ** tmp = NULL; - - if(*no_of_media < 0) - { /* make **section a new array of section pointers */ - if( (tmp = malloc(sizeof(med *))) == NULL ) - nogo_mem(); - } - else - { /* add a new pointer to media pointer list */ - if( (tmp = realloc(media, sizeof(med *) + (((*no_of_media)+1) * sizeof(med *)))) == NULL ) - nogo_mem(); - } - - (*no_of_media)++; - - /* make new array item a pointer to issue */ - if( ( tmp[*no_of_media] = malloc(sizeof(med)) ) == NULL ) - nogo_mem(); - - return tmp; -} - int issuesort(iss ** issue, int no_of_issues) /* does a basic bubble sort, by date, returning sorted issue */ { |