Skip to content

Commit bb461ae

Browse files
committed
Optimize code and update references
1 parent 911d86f commit bb461ae

File tree

97 files changed

+969
-225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+969
-225
lines changed

src/EPPlus/EPPlus/CellStore.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* ******************************************************************************
2929
* Jan Källman Added 2012-11-25
3030
*******************************************************************************/
31-
using Collections.Pooled;
31+
3232
using OfficeOpenXml;
3333
using System;
3434
using System.Collections;
@@ -335,7 +335,7 @@ internal class CellStore<T> : IDisposable// : IEnumerable<ulong>, IEnumerator<ul
335335
internal const int ColSizeMin = 32;
336336
internal const int PagesPerColumnMin = 32;
337337

338-
PooledList<T> _values = new PooledList<T>();
338+
List<T> _values = new List<T>();
339339
internal ColumnIndex[] _columnIndex;
340340
internal IndexBase _searchIx = new IndexBase();
341341
internal IndexItem _searchItem = new IndexItem();
@@ -675,7 +675,7 @@ internal void SetValue(int Row, int Column, T Value)
675675
}
676676
}
677677

678-
internal delegate void SetRangeValueDelegate(PooledList<T> list, int index, int row, int column, object value);
678+
internal delegate void SetRangeValueDelegate(List<T> list, int index, int row, int column, object value);
679679
/// <summary>
680680
/// Set Value for Range
681681
/// </summary>
@@ -769,7 +769,7 @@ internal void SetRangeValueSpecial(int fromRow, int fromColumn, int toRow, int t
769769
}
770770
}
771771

772-
internal delegate void SetValueDelegate(PooledList<T> list, int index, object value);
772+
internal delegate void SetValueDelegate(List<T> list, int index, object value);
773773
// Set object's property atomically
774774
internal void SetValueSpecial(int Row, int Column, SetValueDelegate Updater, object Value)
775775
{
@@ -1605,7 +1605,6 @@ public ulong Current
16051605

16061606
public void Dispose()
16071607
{
1608-
_values.Dispose();
16091608
if (_values != null) _values.Clear();
16101609
for (var c = 0; c < ColumnCount; c++)
16111610
{

src/EPPlus/EPPlus/ConditionalFormatting/ExcelConditionalFormattingCollection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
using SixLabors.ImageSharp;
3737
using System.Xml;
3838

39+
3940
namespace OfficeOpenXml.ConditionalFormatting
4041
{
4142
/// <summary>

src/EPPlus/EPPlus/DataValidation/ExcelDataValidationCollection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
* Jan Källman License changed GPL-->LGPL 2011-12-27
3333
* Raziq York Added support for Any type 2014-08-08
3434
*******************************************************************************/
35+
3536
using OfficeOpenXml.DataValidation.Contracts;
3637
using OfficeOpenXml.Utils;
3738
using System;

src/EPPlus/EPPlus/Drawing/Chart/ExcelChart.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* Jan Källman Added 2009-10-01
3030
* Jan Källman License changed GPL-->LGPL 2011-12-16
3131
*******************************************************************************/
32+
3233
using OfficeOpenXml.Packaging;
3334
using OfficeOpenXml.Table.PivotTable;
3435
using OfficeOpenXml.Utils;

src/EPPlus/EPPlus/Drawing/Chart/ExcelChartCollection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* Jan Källman Added 2009-10-01
3030
* Jan Källman License changed GPL-->LGPL 2011-12-16
3131
*******************************************************************************/
32+
3233
using System;
3334
using System.Collections.Generic;
3435

src/EPPlus/EPPlus/Drawing/Chart/ExcelChartSeries.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* Jan Källman Added 2009-10-01
3030
* Jan Källman License changed GPL-->LGPL 2011-12-16
3131
*******************************************************************************/
32+
3233
using OfficeOpenXml.Table.PivotTable;
3334
using System;
3435
using System.Collections;

src/EPPlus/EPPlus/Drawing/Chart/ExcelChartTrendline.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* Jan Källman Initial Release 2011-05-25
3030
* Jan Källman License changed GPL-->LGPL 2011-12-16
3131
*******************************************************************************/
32+
3233
using System;
3334
using System.Collections.Generic;
3435
using System.Globalization;

src/EPPlus/EPPlus/Drawing/Chart/ExcelScatterChartSerie.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
using Magicodes.IE.EPPlus.SixLabors;
3838
using SixLabors.ImageSharp.PixelFormats;
3939

40+
4041
namespace OfficeOpenXml.Drawing.Chart
4142
{
4243
/// <summary>

src/EPPlus/EPPlus/Drawing/ExcelDrawings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
* Jan Källman License changed GPL-->LGPL 2011-12-16
3030
*******************************************************************************/
3131

32+
3233
using OfficeOpenXml.Drawing.Chart;
3334
using OfficeOpenXml.Table.PivotTable;
3435
using OfficeOpenXml.Utils;
36+
using SixLabors.ImageSharp;
37+
using SixLabors.ImageSharp.Formats;
3538
using System;
3639
using System.Collections;
3740
using System.Collections.Generic;
38-
using SixLabors.ImageSharp;
3941
using System.IO;
4042
using System.Xml;
41-
using SixLabors.ImageSharp;
42-
using SixLabors.ImageSharp.Formats;
4343

4444
namespace OfficeOpenXml.Drawing
4545
{

src/EPPlus/EPPlus/Drawing/Vml/ExcelVmlDrawingCommentCollection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* Jan Källman Initial Release 2010-06-01
3030
* Jan Källman License changed GPL-->LGPL 2011-12-16
3131
*******************************************************************************/
32+
3233
using System;
3334
using System.Collections;
3435
using System.Collections.Generic;

0 commit comments

Comments
 (0)