From d1bfacda385ebfc5ceaeccd310d6b1bb063a8ed9 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 3 Mar 2006 09:24:31 +0000 Subject: Stopped writing out certain ident numbers which were not being used. --- binary.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'binary.cc') 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(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 -- cgit v1.2.3