Skip to content

Commit 48b7b71

Browse files
trevnorrisMyles Borins
authored and
Myles Borins
committed
src: remove unused TickInfo::in_tick()
Ref: #7048 PR-URL: #4507 Reviewed-By: Fedor Indutny <[email protected]>
1 parent d77b28c commit 48b7b71

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/env-inl.h

+1-9
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

-3
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,8 @@ class Environment {
331331
public:
332332
inline uint32_t* fields();
333333
inline int fields_count() const;
334-
inline bool in_tick() const;
335334
inline uint32_t index() const;
336335
inline uint32_t length() const;
337-
inline void set_in_tick(bool value);
338336
inline void set_index(uint32_t value);
339337

340338
private:
@@ -348,7 +346,6 @@ class Environment {
348346
};
349347

350348
uint32_t fields_[kFieldsCount];
351-
bool in_tick_;
352349

353350
DISALLOW_COPY_AND_ASSIGN(TickInfo);
354351
};

0 commit comments

Comments
 (0)