From 6f6f28bd4ccb351764b94950a2440259fe5f4533 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 7 Mar 2013 20:20:57 +0100 Subject: [PATCH] Delete ods_file_casereader_clone function --- src/data/ods-reader.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/data/ods-reader.c b/src/data/ods-reader.c index a36a020a0b..72cfe21ae6 100644 --- a/src/data/ods-reader.c +++ b/src/data/ods-reader.c @@ -68,14 +68,13 @@ ods_open_reader (const struct spreadsheet_read_options *opts, static void ods_file_casereader_destroy (struct casereader *, void *); static struct ccase *ods_file_casereader_read (struct casereader *, void *); -static struct casereader *ods_file_casereader_clone (struct casereader *, void *); static const struct casereader_class ods_file_casereader_class = { ods_file_casereader_read, ods_file_casereader_destroy, - ods_file_casereader_clone, + NULL, NULL, }; @@ -142,6 +141,7 @@ void ods_destroy (struct spreadsheet *s) { struct ods_reader *r = s; + if (--r->ref_cnt == 0) { int i; @@ -228,16 +228,6 @@ ods_get_sheet_range (struct spreadsheet *s, int n) } -static struct casereader * -ods_file_casereader_clone (struct casereader *r_, void *s) -{ - struct ods_reader *r = r_; - - printf ("%s:%d CLONE reffing %p %d\n", __FILE__, __LINE__, s, r->ref_cnt); - - return r_; -} - static void ods_file_casereader_destroy (struct casereader *reader UNUSED, void *r_) { -- 2.30.2