summaryrefslogtreecommitdiff
path: root/binary.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-03 09:24:31 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:48:43 -0400
commitd1bfacda385ebfc5ceaeccd310d6b1bb063a8ed9 (patch)
treee96e8376f4ae344eeef0d7af7aa10bae969724f2 /binary.cc
parente6efa8421f11a17f2200be252c7d4c0023c04fff (diff)
downloadfork-ledger-d1bfacda385ebfc5ceaeccd310d6b1bb063a8ed9.tar.gz
fork-ledger-d1bfacda385ebfc5ceaeccd310d6b1bb063a8ed9.tar.bz2
fork-ledger-d1bfacda385ebfc5ceaeccd310d6b1bb063a8ed9.zip
Stopped writing out certain ident numbers which were not being used.
Diffstat (limited to 'binary.cc')
-rw-r--r--binary.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/binary.cc b/binary.cc
index b41d2bab..387c0769 100644
--- a/binary.cc
+++ b/binary.cc
@@ -388,7 +388,6 @@ inline commodity_t * read_binary_commodity(char *& data)
read_binary_string(data, commodity->note);
read_binary_number(data, commodity->precision);
read_binary_number(data, commodity->flags);
- read_binary_long(data, commodity->ident);
return commodity;
}
@@ -440,7 +439,6 @@ account_t * read_binary_account(char *& data, journal_t * journal,
account_t * acct = new account_t(NULL);
*accounts_next++ = acct;
- acct->ident = read_binary_long<account_t::ident_t>(data);
acct->journal = journal;
account_t::ident_t id;
@@ -859,7 +857,6 @@ void write_binary_commodity(std::ostream& out, commodity_t * commodity)
write_binary_number(out, commodity->precision);
write_binary_number(out, commodity->flags);
commodity->ident = ++commodity_index;
- write_binary_long(out, commodity->ident);
}
void write_binary_commodity_extra(std::ostream& out, commodity_t * commodity)
@@ -908,7 +905,6 @@ void write_binary_account(std::ostream& out, account_t * account)
{
account->ident = ++account_index;
- write_binary_long(out, account->ident);
if (account->parent)
write_binary_long(out, account->parent->ident);
else