From af4de1afdb2ba674637a0dcb44ad9f8017428a39 Mon Sep 17 00:00:00 2001 From: Debao Zhang Date: Mon, 4 Nov 2013 10:58:17 +0800 Subject: [PATCH] Remove unused colorIndexed member. As all the indexed colors will be converted to rgb in the library when reads an existing .xlsx file. When write a .xlsx file, we never write indexed color. --- src/xlsx/xlsxformat.cpp | 7 ------- src/xlsx/xlsxformat.h | 1 - src/xlsx/xlsxformat_p.h | 1 - 3 files changed, 9 deletions(-) diff --git a/src/xlsx/xlsxformat.cpp b/src/xlsx/xlsxformat.cpp index 6e08a9a..c4f348a 100755 --- a/src/xlsx/xlsxformat.cpp +++ b/src/xlsx/xlsxformat.cpp @@ -42,7 +42,6 @@ FormatPrivate::FormatPrivate(Format *p) : dxf_indexValid = false; theme = 0; - color_indexed = 0; } /*! @@ -983,10 +982,4 @@ int Format::theme() const return d->theme; } -int Format::colorIndexed() const -{ - Q_D(const Format); - return d->color_indexed; -} - QT_END_NAMESPACE_XLSX diff --git a/src/xlsx/xlsxformat.h b/src/xlsx/xlsxformat.h index cbce011..fc5a335 100755 --- a/src/xlsx/xlsxformat.h +++ b/src/xlsx/xlsxformat.h @@ -253,7 +253,6 @@ private: void setDxfIndex(int index); int theme() const; - int colorIndexed() const; FormatPrivate * const d_ptr; }; diff --git a/src/xlsx/xlsxformat_p.h b/src/xlsx/xlsxformat_p.h index 5047068..4d3d12f 100644 --- a/src/xlsx/xlsxformat_p.h +++ b/src/xlsx/xlsxformat_p.h @@ -266,7 +266,6 @@ public: bool dxf_indexValid; int theme; - int color_indexed; Format *q_ptr; };