Skip to content

Commit 7f22c8c

Browse files
trevnorrisrvagg
authored andcommitted
src: remove unused TickInfo::in_tick()
PR-URL: #4507 Reviewed-By: Fedor Indutny <fedor@indutny.com>
1 parent 406eb1f commit 7f22c8c

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/env-inl.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ inline uint32_t Environment::DomainFlag::count() const {
118118
return fields_[kCount];
119119
}
120120

121-
inline Environment::TickInfo::TickInfo() : in_tick_(false) {
121+
inline Environment::TickInfo::TickInfo() {
122122
for (int i = 0; i < kFieldsCount; ++i)
123123
fields_[i] = 0;
124124
}
@@ -131,10 +131,6 @@ inline int Environment::TickInfo::fields_count() const {
131131
return kFieldsCount;
132132
}
133133

134-
inline bool Environment::TickInfo::in_tick() const {
135-
return in_tick_;
136-
}
137-
138134
inline uint32_t Environment::TickInfo::index() const {
139135
return fields_[kIndex];
140136
}
@@ -143,10 +139,6 @@ inline uint32_t Environment::TickInfo::length() const {
143139
return fields_[kLength];
144140
}
145141

146-
inline void Environment::TickInfo::set_in_tick(bool value) {
147-
in_tick_ = value;
148-
}
149-
150142
inline void Environment::TickInfo::set_index(uint32_t value) {
151143
fields_[kIndex] = value;
152144
}

src/env.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,8 @@ class Environment {
344344
public:
345345
inline uint32_t* fields();
346346
inline int fields_count() const;
347-
inline bool in_tick() const;
348347
inline uint32_t index() const;
349348
inline uint32_t length() const;
350-
inline void set_in_tick(bool value);
351349
inline void set_index(uint32_t value);
352350

353351
private:
@@ -361,7 +359,6 @@ class Environment {
361359
};
362360

363361
uint32_t fields_[kFieldsCount];
364-
bool in_tick_;
365362

366363
DISALLOW_COPY_AND_ASSIGN(TickInfo);
367364
};

0 commit comments

Comments
 (0)