Removed unnused account_t::ident.
This commit is contained in:
parent
336cd5ef35
commit
f4c7f86e21
1 changed files with 2 additions and 7 deletions
|
|
@ -64,8 +64,6 @@ typedef std::map<const string, account_t *> accounts_map;
|
||||||
class account_t : public scope_t
|
class account_t : public scope_t
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef std::size_t ident_t;
|
|
||||||
|
|
||||||
account_t * parent;
|
account_t * parent;
|
||||||
string name;
|
string name;
|
||||||
optional<string> note;
|
optional<string> note;
|
||||||
|
|
@ -73,14 +71,13 @@ class account_t : public scope_t
|
||||||
accounts_map accounts;
|
accounts_map accounts;
|
||||||
|
|
||||||
mutable void * data;
|
mutable void * data;
|
||||||
mutable ident_t ident;
|
|
||||||
mutable string _fullname;
|
mutable string _fullname;
|
||||||
|
|
||||||
account_t(account_t * _parent = NULL,
|
account_t(account_t * _parent = NULL,
|
||||||
const string& _name = "",
|
const string& _name = "",
|
||||||
const optional<string>& _note = none)
|
const optional<string>& _note = none)
|
||||||
: scope_t(), parent(_parent), name(_name), note(_note),
|
: scope_t(), parent(_parent), name(_name), note(_note),
|
||||||
depth(parent ? parent->depth + 1 : 0), data(NULL), ident(0) {
|
depth(parent ? parent->depth + 1 : 0), data(NULL) {
|
||||||
TRACE_CTOR(account_t, "account_t *, const string&, const string&");
|
TRACE_CTOR(account_t, "account_t *, const string&, const string&");
|
||||||
}
|
}
|
||||||
account_t(const account_t& other)
|
account_t(const account_t& other)
|
||||||
|
|
@ -90,11 +87,9 @@ class account_t : public scope_t
|
||||||
note(other.note),
|
note(other.note),
|
||||||
depth(other.depth),
|
depth(other.depth),
|
||||||
accounts(other.accounts),
|
accounts(other.accounts),
|
||||||
data(NULL),
|
data(NULL) {
|
||||||
ident(0) {
|
|
||||||
TRACE_CTOR(account_t, "copy");
|
TRACE_CTOR(account_t, "copy");
|
||||||
assert(other.data == NULL);
|
assert(other.data == NULL);
|
||||||
assert(other.ident == 0);
|
|
||||||
}
|
}
|
||||||
~account_t();
|
~account_t();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue