diff options
author | Maximilian Eschenbacher <maximilian@eschenbacher.email> | 2022-02-14 21:58:57 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2022-02-22 12:56:46 -0800 |
commit | 36d7fe8f5f4b6658ce9565d316b136b7ebea0933 (patch) | |
tree | 9b96b3e9c4cc1d3a64019fd8eabf39ede2efc3e4 /src/py_journal.cc | |
parent | 8e79216887cf3c342dfca1ffa52cf4e6389d6de4 (diff) | |
download | fork-ledger-36d7fe8f5f4b6658ce9565d316b136b7ebea0933.tar.gz fork-ledger-36d7fe8f5f4b6658ce9565d316b136b7ebea0933.tar.bz2 fork-ledger-36d7fe8f5f4b6658ce9565d316b136b7ebea0933.zip |
fileinfo_t: remove size member
it is currently not required but set. Incidentally, calling file_size()
on a bash pipe e.g. /proc/self/fd/11 fails with:
Error: boost::filesystem::file_size: Operation not permitted: "/proc/self/fd/11"
when executing ledger as
ledger -f <(cat journal)
Diffstat (limited to 'src/py_journal.cc')
-rw-r--r-- | src/py_journal.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/py_journal.cc b/src/py_journal.cc index 08e9902e..4cbdd67d 100644 --- a/src/py_journal.cc +++ b/src/py_journal.cc @@ -251,9 +251,6 @@ void export_journal() .add_property("filename", make_getter(&journal_t::fileinfo_t::filename), make_setter(&journal_t::fileinfo_t::filename)) - .add_property("size", - make_getter(&journal_t::fileinfo_t::size), - make_setter(&journal_t::fileinfo_t::size)) .add_property("modtime", make_getter(&journal_t::fileinfo_t::modtime), make_setter(&journal_t::fileinfo_t::modtime)) |