Browse Source

src: remove unused TickInfo::in_tick()

PR-URL: https://github.com/nodejs/node/pull/4507
Reviewed-By: Fedor Indutny <fedor@indutny.com>
process-exit-stdio-flushing
Trevor Norris 9 years ago
parent
commit
5e30478ede
  1. 10
      src/env-inl.h
  2. 3
      src/env.h

10
src/env-inl.h

@ -131,7 +131,7 @@ inline uint32_t Environment::DomainFlag::count() const {
return fields_[kCount];
}
inline Environment::TickInfo::TickInfo() : in_tick_(false) {
inline Environment::TickInfo::TickInfo() {
for (int i = 0; i < kFieldsCount; ++i)
fields_[i] = 0;
}
@ -144,10 +144,6 @@ inline int Environment::TickInfo::fields_count() const {
return kFieldsCount;
}
inline bool Environment::TickInfo::in_tick() const {
return in_tick_;
}
inline uint32_t Environment::TickInfo::index() const {
return fields_[kIndex];
}
@ -156,10 +152,6 @@ inline uint32_t Environment::TickInfo::length() const {
return fields_[kLength];
}
inline void Environment::TickInfo::set_in_tick(bool value) {
in_tick_ = value;
}
inline void Environment::TickInfo::set_index(uint32_t value) {
fields_[kIndex] = value;
}

3
src/env.h

@ -351,10 +351,8 @@ class Environment {
public:
inline uint32_t* fields();
inline int fields_count() const;
inline bool in_tick() const;
inline uint32_t index() const;
inline uint32_t length() const;
inline void set_in_tick(bool value);
inline void set_index(uint32_t value);
private:
@ -368,7 +366,6 @@ class Environment {
};
uint32_t fields_[kFieldsCount];
bool in_tick_;
DISALLOW_COPY_AND_ASSIGN(TickInfo);
};

Loading…
Cancel
Save