solstice-solver

Solver library of the solstice app
git clone git://git.meso-star.com/solstice-solver.git
Log | Files | Refs | README | LICENSE

commit b92851e8a2ecb1acce7ef94bfd111d920ffc6085
parent 30bfda76c248b8bf407ef602085c23bb1e400e86
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue,  2 May 2017 18:15:39 +0200

Remove unused code.

Diffstat:
Msrc/ssol_spectrum.c | 29-----------------------------
Msrc/ssol_spectrum_c.h | 6------
2 files changed, 0 insertions(+), 35 deletions(-)

diff --git a/src/ssol_spectrum.c b/src/ssol_spectrum.c @@ -41,20 +41,6 @@ spectrum_release(ref_T* ref) } static int -spectrum_includes_point - (const struct ssol_spectrum* spectrum, - const double wavelength) -{ - const double* data; - size_t sz; - ASSERT(spectrum); - sz = darray_double_size_get(&spectrum->wavelengths); - ASSERT(sz && sz == darray_double_size_get(&spectrum->intensities)); - data = darray_double_cdata_get(&spectrum->wavelengths); - return data[0] <= wavelength && wavelength <= data[sz - 1]; -} - -static int eq_dbl(const void* key, const void* base) { const double k = *(const double*) key; @@ -67,21 +53,6 @@ eq_dbl(const void* key, const void* base) /******************************************************************************* * Local ssol_spectrum functions ******************************************************************************/ -int -spectrum_includes - (const struct ssol_spectrum* reference, - const struct ssol_spectrum* tested) -{ - const double* test_data; - size_t test_sz; - ASSERT(reference && tested); - - test_sz = darray_double_size_get(&tested->wavelengths); - test_data = darray_double_cdata_get(&tested->wavelengths); - return spectrum_includes_point(reference, test_data[0]) - && spectrum_includes_point(reference, test_data[test_sz - 1]); -} - double spectrum_interpolate (const struct ssol_spectrum* spectrum, const double wavelength) diff --git a/src/ssol_spectrum_c.h b/src/ssol_spectrum_c.h @@ -27,12 +27,6 @@ struct ssol_spectrum { ref_T ref; }; -/* Check that the `tested' spectrum is included into `reference' */ -extern LOCAL_SYM int -spectrum_includes - (const struct ssol_spectrum* reference, - const struct ssol_spectrum* tested); - /* Retrieve the linearly interpolated spectrum intensity for the commited * wavelength */ extern LOCAL_SYM double