Skip to content

Commit

Permalink
Remove delimiter from csv Writer (#1342)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsserge committed Feb 24, 2022
1 parent 6b0956a commit a2e629d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arrow/src/csv/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ where
pub struct Writer<W: Write> {
/// The object to write to
writer: csv_crate::Writer<W>,
/// Column delimiter. Defaults to `b','`
#[allow(dead_code)]
delimiter: u8,
/// Whether file should be written with headers. Defaults to `true`
has_headers: bool,
/// The date format for date arrays
Expand All @@ -124,7 +121,6 @@ impl<W: Write> Writer<W> {
let writer = builder.delimiter(delimiter).from_writer(writer);
Writer {
writer,
delimiter,
has_headers: true,
date_format: DEFAULT_DATE_FORMAT.to_string(),
datetime_format: DEFAULT_TIMESTAMP_FORMAT.to_string(),
Expand Down Expand Up @@ -481,7 +477,6 @@ impl WriterBuilder {
let writer = builder.delimiter(delimiter).from_writer(writer);
Writer {
writer,
delimiter,
has_headers: self.has_headers,
date_format: self
.date_format
Expand Down

0 comments on commit a2e629d

Please sign in to comment.