[gnumeric] Cleanup.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Cleanup.
- Date: Tue, 25 Feb 2014 12:41:36 +0000 (UTC)
commit 7ecd383644da36f704ebebba9f344fbeaca66f47
Author: Morten Welinder <terra gnome org>
Date: Tue Feb 25 07:41:23 2014 -0500
Cleanup.
plugins/excel/ChangeLog | 4 ++++
plugins/excel/ms-biff.c | 4 ----
plugins/excel/ms-biff.h | 4 ----
3 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 3b95ec0..b6719a0 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,7 @@
+2014-02-25 Morten Welinder <terra gnome org>
+
+ * ms-biff.c (ms_biff_put_new): No need for bp->buf anymore.
+
2014-02-24 Morten Welinder <terra gnome org>
* xlsx-write.c (xlsx_write_cells): Export row height when it is
diff --git a/plugins/excel/ms-biff.c b/plugins/excel/ms-biff.c
index 26f7dce..7f293fb 100644
--- a/plugins/excel/ms-biff.c
+++ b/plugins/excel/ms-biff.c
@@ -619,9 +619,6 @@ ms_biff_put_new (GsfOutput *output, MsBiffVersion version, int codepage)
bp->record = g_string_new (NULL);
- bp->buf_len = 2048; /* maximum size for a biff7 record */
- bp->buf = g_malloc (bp->buf_len);
-
if (version >= MS_BIFF_V8) {
bp->convert = g_iconv_open ("UTF-16LE", "UTF-8");
bp->codepage = 1200;
@@ -647,7 +644,6 @@ ms_biff_put_destroy (BiffPut *bp)
}
g_string_free (bp->record, TRUE);
- g_free (bp->buf);
gsf_iconv_close (bp->convert);
g_free (bp);
diff --git a/plugins/excel/ms-biff.h b/plugins/excel/ms-biff.h
index 605a508..5f111f6 100644
--- a/plugins/excel/ms-biff.h
+++ b/plugins/excel/ms-biff.h
@@ -87,10 +87,6 @@ typedef struct _BiffPut {
*/
GString *record;
- /* a buffer for generating unicode */
- guint8 *buf;
- unsigned buf_len;
-
int codepage;
GIConv convert;
} BiffPut;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]