summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
authorMichael Budde <mbudde@gmail.com>2019-03-31 13:24:57 +0200
committerMartin Michlmayr <tbm@cyrius.com>2019-04-02 11:55:34 +0700
commit928fe50958f980d3ff92f54abe07dd97d53e2279 (patch)
treef2f7a7219eeaffbef4e230e498ba56aaf480b616 /src/times.cc
parent3c1edae24e741e0d3d52ab82f9ba55927c18767e (diff)
downloadfork-ledger-928fe50958f980d3ff92f54abe07dd97d53e2279.tar.gz
fork-ledger-928fe50958f980d3ff92f54abe07dd97d53e2279.tar.bz2
fork-ledger-928fe50958f980d3ff92f54abe07dd97d53e2279.zip
Remove dead code
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/times.cc b/src/times.cc
index 74773755..b9c67078 100644
--- a/src/times.cc
+++ b/src/times.cc
@@ -114,7 +114,6 @@ namespace {
shared_ptr<datetime_io_t> input_datetime_io;
shared_ptr<datetime_io_t> timelog_datetime_io;
- shared_ptr<date_io_t> input_date_io;
shared_ptr<datetime_io_t> written_datetime_io;
shared_ptr<date_io_t> written_date_io;
shared_ptr<datetime_io_t> printed_datetime_io;
@@ -174,13 +173,6 @@ namespace {
date_t parse_date_mask(const char * date_str, date_traits_t * traits = NULL)
{
- if (input_date_io.get()) {
- date_t when = parse_date_mask_routine(date_str, *input_date_io.get(),
- traits);
- if (! when.is_not_a_date())
- return when;
- }
-
foreach (shared_ptr<date_io_t>& reader, readers) {
date_t when = parse_date_mask_routine(date_str, *reader.get(), traits);
if (! when.is_not_a_date())
@@ -1745,7 +1737,6 @@ void times_shutdown()
if (is_initialized) {
input_datetime_io.reset();
timelog_datetime_io.reset();
- input_date_io.reset();
written_datetime_io.reset();
written_date_io.reset();
printed_datetime_io.reset();