Skip to content

Commit efa84d4

Browse files
committed
removeLists generic methods
1 parent f71556e commit efa84d4

File tree

7 files changed

+0
-52
lines changed

7 files changed

+0
-52
lines changed

src/nixblock.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "nixblock.h"
2-
#include "nixgen.h"
32

43
#include "mex.h"
54

src/nixfeature.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "nixfeature.h"
2-
#include "nixgen.h"
32

43
#include "mex.h"
54

src/nixfile.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "nixfile.h"
2-
#include "nixgen.h"
32

43
#include "mex.h"
54

src/nixgen.cc

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

1111
namespace nixgen {
1212

13-
mxArray* list_data_arrays(std::vector<nix::DataArray> daIn)
14-
{
15-
std::vector<nix::DataArray> arr = daIn;
16-
17-
struct_builder sb({ arr.size() }, { "id", "type", "name" });
18-
19-
for (const auto &da : arr) {
20-
sb.set(da.id());
21-
sb.set(da.type());
22-
sb.set(da.name());
23-
24-
sb.next();
25-
}
26-
return sb.array();
27-
}
28-
29-
mxArray* list_features(std::vector<nix::Feature> featIn)
30-
{
31-
std::vector<nix::Feature> arr = featIn;
32-
struct_builder sb({ arr.size() }, { "id" });
33-
for (const auto &da : arr) {
34-
sb.set(da.id());
35-
sb.next();
36-
}
37-
return sb.array();
38-
}
39-
40-
mxArray* list_sources(std::vector<nix::Source> sourceIn)
41-
{
42-
std::vector<nix::Source> arr = sourceIn;
43-
struct_builder sb({ arr.size() }, { "id", "type", "name", "definition" });
44-
for (const auto &da : arr) {
45-
sb.set(da.id());
46-
sb.set(da.type());
47-
sb.set(da.name());
48-
sb.set(da.definition());
49-
sb.next();
50-
}
51-
return sb.array();
52-
}
53-
5413
mxArray *dataset_read_all(const nix::DataSet &da) {
5514
nix::NDSize size = da.dataExtent();
5615
const size_t len = size.size();

src/nixgen.h

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

77
namespace nixgen {
88

9-
mxArray* list_data_arrays(std::vector<nix::DataArray> daIn);
10-
11-
mxArray* list_features(std::vector<nix::Feature> featIn);
12-
13-
mxArray* list_sources(std::vector<nix::Source> sourceIn);
14-
159
mxArray *dataset_read_all(const nix::DataSet &da);
1610

1711
} // namespace nixgen

src/nixsection.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "mex.h"
44
#include <nix.hpp>
55

6-
#include "nixgen.h"
76
#include "handle.h"
87
#include "arguments.h"
98
#include "struct.h"

src/nixsource.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "nixsource.h"
2-
#include "nixgen.h"
32

43
#include "mex.h"
54

0 commit comments

Comments
 (0)