summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column2.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-08-01 22:01:26 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-08-02 14:22:10 -0400
commitbf846ac0510da21f7faa601fbd30d9147dc3ee71 (patch)
treed6acca38a7b233b24ba5f1331320efab7fcadc69 /sc/source/core/data/column2.cxx
parenteace5e0a1c4bab37699429447b1a17e3c9410503 (diff)
fdo#67099: Remove overheads on inserting cells during ods import.
We will switch to using ScDocumentImport to populate the document from import filters, instead of using ScDocument directly. Change-Id: Ie59d6877d1ac4fc04751a84b663772a9dc9a3efc
Diffstat (limited to 'sc/source/core/data/column2.cxx')
-rw-r--r--sc/source/core/data/column2.cxx35
1 files changed, 0 insertions, 35 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index ab6c88a2e1a5..6a52d8cc8447 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -1626,41 +1626,6 @@ void ScColumn::CopyCellTextAttrsToDocument(SCROW nRow1, SCROW nRow2, ScColumn& r
}
}
-namespace {
-
-class CellTextAttrInitializer
-{
- sc::CellTextAttrStoreType maAttrs;
- sc::CellTextAttrStoreType::iterator miPos;
-public:
- CellTextAttrInitializer() : maAttrs(MAXROWCOUNT), miPos(maAttrs.begin()) {}
-
- void operator() (const sc::CellStoreType::value_type& node)
- {
- if (node.type == sc::element_type_empty)
- return;
-
- // Fill with default values for non-empty cell segments.
- std::vector<sc::CellTextAttr> aDefaults(node.size);
- miPos = maAttrs.set(miPos, node.position, aDefaults.begin(), aDefaults.end());
- }
-
- void swap(sc::CellTextAttrStoreType& rAttrs)
- {
- maAttrs.swap(rAttrs);
- }
-};
-
-}
-
-void ScColumn::ResetCellTextAttrs()
-{
- CellTextAttrInitializer aFunc;
- std::for_each(maCells.begin(), maCells.end(), aFunc);
- aFunc.swap(maCellTextAttrs);
- CellStorageModified();
-}
-
void ScColumn::SwapCellTextAttrs( SCROW nRow1, SCROW nRow2 )
{
typedef std::pair<sc::CellTextAttrStoreType::iterator,size_t> PosType;