Skip to content

Commit 607fc94

Browse files
committed
remove unused function
1 parent 405dddc commit 607fc94

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

include_tilt/tilt_utils.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ void post_process_output(const std::vector<ColumnResult>& col_results,
4545
const bool switch_liq_cloud_optics,
4646
const bool switch_ice_cloud_optics);
4747

48-
std::vector<Float> linspace(Float start, Float end, int num_points);
49-
5048
bool prepare_netcdf(Netcdf_handle& input_nc, std::string file_name, int n_lay, int n_lev, int n_col_x, int n_col_y,
5149
int n_zh, int n_z,
5250
Float sza, std::vector<Float> zh, std::vector<Float> z,

src_tilt/tilt_utils.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@
1515
#include "tilt_utils.h"
1616
#include "types.h"
1717

18-
std::vector<Float> linspace(Float start, Float end, int num_points) {
19-
std::vector<Float> result;
20-
if (num_points <= 0) {
21-
return result; // Return empty vector for invalid input
22-
}
23-
if (num_points == 1) {
24-
result.push_back(start);
25-
return result;
26-
}
27-
28-
Float step = (end - start) / (num_points - 1);
29-
for (int i = 0; i < num_points; ++i) {
30-
result.push_back(start + i * step);
31-
}
32-
return result;
33-
}
3418

3519
void tilted_path(std::vector<Float>& xh, std::vector<Float>& yh,
3620
std::vector<Float>& zh, std::vector<Float>& z,

0 commit comments

Comments
 (0)