mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
Eliminate unused variables.
This commit is contained in:
parent
2ed031e440
commit
6b18d775ab
@ -161,9 +161,7 @@ void Line<include_clock>::update_delegate(bool level) {
|
|||||||
// Forward as many bits as occur.
|
// Forward as many bits as occur.
|
||||||
Storage::Time time_left(cycles_to_forward, int(clock_rate_.as_integral()));
|
Storage::Time time_left(cycles_to_forward, int(clock_rate_.as_integral()));
|
||||||
const int bit = level ? 1 : 0;
|
const int bit = level ? 1 : 0;
|
||||||
int bits = 0;
|
|
||||||
while(time_left >= time_left_in_bit_) {
|
while(time_left >= time_left_in_bit_) {
|
||||||
++bits;
|
|
||||||
if(!read_delegate_->serial_line_did_produce_bit(this, bit)) {
|
if(!read_delegate_->serial_line_did_produce_bit(this, bit)) {
|
||||||
read_delegate_phase_ = ReadDelegatePhase::WaitingForZero;
|
read_delegate_phase_ = ReadDelegatePhase::WaitingForZero;
|
||||||
if(bit) return;
|
if(bit) return;
|
||||||
|
@ -947,7 +947,6 @@ template < class T,
|
|||||||
target.instructions.resize(256, nullptr);
|
target.instructions.resize(256, nullptr);
|
||||||
|
|
||||||
// Copy in all programs, recording where they go.
|
// Copy in all programs, recording where they go.
|
||||||
std::size_t destination = 0;
|
|
||||||
for(std::size_t c = 0; c < 256; c++) {
|
for(std::size_t c = 0; c < 256; c++) {
|
||||||
operation_indices.push_back(target.all_operations.size());
|
operation_indices.push_back(target.all_operations.size());
|
||||||
for(std::size_t t = 0; t < lengths[c];) {
|
for(std::size_t t = 0; t < lengths[c];) {
|
||||||
@ -974,7 +973,6 @@ template < class T,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
target.all_operations.emplace_back(table[c][t]);
|
target.all_operations.emplace_back(table[c][t]);
|
||||||
destination++;
|
|
||||||
t++;
|
t++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user