lib/optimiser/workbook_pruner.rb in rubyfromexcel-0.0.13 vs lib/optimiser/workbook_pruner.rb in rubyfromexcel-0.0.16
- old
+ new
@@ -46,9 +46,11 @@
def delete_cells_that_we_dont_want_to_keep
workbook.worksheets.each do |name,sheet|
sheet.cells.delete_if do |reference,cell|
if cells_to_keep.has_key?(cell.to_s)
false
+ #elsif cell.must_keep?
+ # false
else
RubyFromExcel.debug(:pruning_delete,"#{name}.#{reference}")
true
end
end
\ No newline at end of file