Skip to content

Commit a58d1b5

Browse files
committed
removed unused code
1 parent 5c081f0 commit a58d1b5

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/renderer.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -161,41 +161,6 @@ impl FractalRenderer {
161161
}
162162
}
163163

164-
pub fn update_location(&mut self, zoom: FloatExtended, mut center_location: ComplexArbitrary) {
165-
self.zoom = zoom;
166-
167-
let delta_pixel = (-2.0 * (4.0 / self.image_height as f64 - 2.0) / self.zoom) / self.image_height as f64;
168-
let radius = delta_pixel * self.image_width as f64;
169-
let precision = max(64, -radius.exponent + 64);
170-
171-
center_location.set_prec(precision as u32);
172-
173-
self.center_reference = Reference::new(center_location.clone(),
174-
center_location.clone(),
175-
1,
176-
self.maximum_iteration,
177-
self.center_reference.data_storage_interval,
178-
self.center_reference.glitch_tolerance,
179-
self.zoom);
180-
181-
if self.series_approximation.min_valid_iteration < 2500 {
182-
self.series_approximation.order = 16;
183-
} else {
184-
self.series_approximation.order = 64;
185-
}
186-
187-
// println!("{} {}", self.series_approximation.min_valid_iteration, self.maximum_iteration);
188-
189-
if self.series_approximation.min_valid_iteration > self.maximum_iteration / 5 {
190-
self.maximum_iteration /= 2;
191-
self.maximum_iteration *= 3;
192-
}
193-
194-
self.data_export.maximum_iteration = self.maximum_iteration;
195-
self.center_reference.maximum_iteration = self.maximum_iteration;
196-
self.series_approximation.maximum_iteration = self.maximum_iteration;
197-
}
198-
199164
pub fn render_frame(&mut self, frame_index: usize, filename: String, stop_flag: Option<Arc<RelaxedCounter>>) {
200165
if self.show_output {
201166
print!("{:<6}", frame_index + self.frame_offset);

0 commit comments

Comments
 (0)