Skip to content

Commit

Permalink
src: remove unused TickInfo::in_tick()
Browse files Browse the repository at this point in the history
Ref: #7048
PR-URL: #4507
Reviewed-By: Fedor Indutny <[email protected]>
  • Loading branch information
trevnorris authored and Myles Borins committed Jun 24, 2016
1 parent 5d899e3 commit 359f304
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
10 changes: 1 addition & 9 deletions src/env-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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;
}
Expand All @@ -131,10 +131,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];
}
Expand All @@ -143,10 +139,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;
}
Expand Down
3 changes: 0 additions & 3 deletions src/env.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,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:
Expand All @@ -348,7 +346,6 @@ class Environment {
};

uint32_t fields_[kFieldsCount];
bool in_tick_;

DISALLOW_COPY_AND_ASSIGN(TickInfo);
};
Expand Down

0 comments on commit 359f304

Please sign in to comment.