summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2022-06-06 17:35:38 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2022-06-06 17:35:51 -0400
commit1081395adb8792908a8f2b853133a88a0999fa10 (patch)
tree2231fe80a2949107d98350f8d9917d330e06f863
parent36a2d91eae2b2e1583be79e837144de9d53b3e64 (diff)
downloadorcus-1081395adb8792908a8f2b853133a88a0999fa10.tar.gz
Remove the old interface for number format import
-rw-r--r--include/orcus/spreadsheet/factory.hpp4
-rw-r--r--include/orcus/spreadsheet/import_interface_styles.hpp3
-rw-r--r--src/spreadsheet/factory_styles.cpp25
3 files changed, 0 insertions, 32 deletions
diff --git a/include/orcus/spreadsheet/factory.hpp b/include/orcus/spreadsheet/factory.hpp
index ae2a2a66..6bd4db6e 100644
--- a/include/orcus/spreadsheet/factory.hpp
+++ b/include/orcus/spreadsheet/factory.hpp
@@ -83,11 +83,7 @@ public:
virtual void set_font_count(size_t n) override;
virtual void set_fill_count(size_t n) override;
virtual void set_border_count(size_t n) override;
-
virtual void set_number_format_count(size_t n) override;
- virtual void set_number_format_identifier(size_t id) override;
- virtual void set_number_format_code(std::string_view s) override;
- virtual size_t commit_number_format() override;
virtual void set_cell_xf_count(size_t n) override;
virtual void set_cell_style_xf_count(size_t n) override;
diff --git a/include/orcus/spreadsheet/import_interface_styles.hpp b/include/orcus/spreadsheet/import_interface_styles.hpp
index 9c20ac91..d8147f15 100644
--- a/include/orcus/spreadsheet/import_interface_styles.hpp
+++ b/include/orcus/spreadsheet/import_interface_styles.hpp
@@ -128,9 +128,6 @@ public:
* @param n number of number format styles.
*/
virtual void set_number_format_count(size_t n) = 0;
- virtual void set_number_format_identifier(size_t id) = 0;
- virtual void set_number_format_code(std::string_view s) = 0;
- virtual size_t commit_number_format() = 0;
// Cell format and cell style format, and differential cell format records.
// All of these records share the same data structure for their entries. A
diff --git a/src/spreadsheet/factory_styles.cpp b/src/spreadsheet/factory_styles.cpp
index 463eeae7..b536e8f3 100644
--- a/src/spreadsheet/factory_styles.cpp
+++ b/src/spreadsheet/factory_styles.cpp
@@ -41,9 +41,6 @@ struct import_styles::impl
fill_t cur_fill;
fill_active_t cur_fill_active;
- number_format_t cur_number_format;
- number_format_active_t cur_number_format_active;
-
cell_format_t cur_cell_format;
cell_style_t cur_cell_style;
@@ -113,28 +110,6 @@ void import_styles::set_number_format_count(size_t n)
mp_impl->styles_model.reserve_number_format_store(n);
}
-void import_styles::set_number_format_identifier(size_t id)
-{
- mp_impl->cur_number_format.identifier = id;
- mp_impl->cur_number_format_active.identifier = true;
-}
-
-void import_styles::set_number_format_code(std::string_view s)
-{
- mp_impl->cur_number_format.format_string = s;
- mp_impl->cur_number_format_active.format_string = true;
-}
-
-size_t import_styles::commit_number_format()
-{
- size_t nf_id = mp_impl->styles_model.append_number_format(
- mp_impl->cur_number_format, mp_impl->cur_number_format_active);
-
- mp_impl->cur_number_format.reset();
- mp_impl->cur_number_format_active.reset();
- return nf_id;
-}
-
void import_styles::set_cell_xf_count(size_t n)
{
mp_impl->styles_model.reserve_cell_format_store(n);