commit 76b864e8c22c131c1b65b476dcd78674427629c1
parent 8e81e195b34f1aeb8a28aba2fb2868e0de269919
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 25 Jun 2024 12:55:07 +0200
Remove duplicate code in tests
Same lines repeated twice
Diffstat:
2 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/test_sdis_custom_solid_path_sampling.c b/src/test_sdis_custom_solid_path_sampling.c
@@ -291,8 +291,6 @@ sample_steady_diffusive_path
path->weight = 0;
path->at_limit = 0;
path->prim_2d = S2D_PRIMITIVE_NULL;
- path->weight = 0;
- path->at_limit = 0;
setup_solver_primitive(scn, solid->shape, &hit, &path->prim_3d);
return RES_OK;
diff --git a/src/test_sdis_custom_solid_path_sampling_2d.c b/src/test_sdis_custom_solid_path_sampling_2d.c
@@ -316,8 +316,6 @@ sample_steady_diffusive_path
path->weight = 0;
path->at_limit = 0;
path->prim_3d = S3D_PRIMITIVE_NULL;
- path->weight = 0;
- path->at_limit = 0;
setup_solver_primitive(scn, solid->shape, &hit, &path->prim_2d);
return RES_OK;