Skip to content

Commit 66d3d46

Browse files
committed
Delete unused variable p in main()
1 parent 3d9c619 commit 66d3d46

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,6 @@
913913

914914

915915
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
916-
vec3 p = r.at(2.0);
917916
vec3 color = ray_color(r, world);
918917
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
919918

src/TheNextWeek/main.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ int main() {
338338
auto u = (i + random_double()) / nx;
339339
auto v = (j + random_double()) / ny;
340340
ray r = cam.get_ray(u, v);
341-
vec3 p = r.at(2.0);
342341
color += ray_color(r, world, max_depth);
343342
}
344343
color.write_color(std::cout, num_samples);

src/TheRestOfYourLife/main.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ int main() {
101101
auto u = (i + random_double()) / nx;
102102
auto v = (j + random_double()) / ny;
103103
ray r = cam->get_ray(u, v);
104-
vec3 p = r.at(2.0);
105104
color += ray_color(r, world, &hlist, max_depth);
106105
}
107106
color.write_color(std::cout, num_samples);

0 commit comments

Comments
 (0)