Skip to content

Commit 94d1c6b

Browse files
committed
migrateToGlue: remove obsolete generic functions
1 parent 125d268 commit 94d1c6b

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

src/nixgen.cc

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010

1111
namespace nixgen {
1212

13-
handle open_data_array(nix::DataArray inDa)
14-
{
15-
nix::DataArray da = inDa;
16-
handle h = handle(da);
17-
return h;
18-
}
19-
2013
mxArray* list_data_arrays(std::vector<nix::DataArray> daIn)
2114
{
2215
std::vector<nix::DataArray> arr = daIn;
@@ -58,21 +51,6 @@ namespace nixgen {
5851
return sb.array();
5952
}
6053

61-
handle open_source(nix::Source sourceIn)
62-
{
63-
nix::Source currSource = sourceIn;
64-
handle currSourceHandle = handle(currSource);
65-
return currSourceHandle;
66-
}
67-
68-
handle open_feature(nix::Feature featIn)
69-
{
70-
nix::Feature currFeat = featIn;
71-
handle currTagFeatHandle = handle(currFeat);
72-
return currTagFeatHandle;
73-
}
74-
75-
7654
mxArray *dataset_read_all(const nix::DataSet &da) {
7755
nix::NDSize size = da.dataExtent();
7856
const size_t len = size.size();

src/nixgen.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,12 @@
66

77
namespace nixgen {
88

9-
handle open_data_array(nix::DataArray inDa);
10-
119
mxArray* list_data_arrays(std::vector<nix::DataArray> daIn);
1210

1311
mxArray* list_features(std::vector<nix::Feature> featIn);
1412

1513
mxArray* list_sources(std::vector<nix::Source> sourceIn);
1614

17-
handle open_source(nix::Source sourceIn);
18-
19-
handle open_feature(nix::Feature featIn);
20-
21-
template<typename T>
22-
uint64_t get_handle_or_none(T &&obj) {
23-
if (obj) {
24-
return handle(std::forward<T>(obj)).address();
25-
}
26-
else
27-
{
28-
return uint64_t(0);
29-
}
30-
}
31-
3215
mxArray *dataset_read_all(const nix::DataSet &da);
3316

3417
} // namespace nixgen

0 commit comments

Comments
 (0)