Skip to content

Commit 301c5ff

Browse files
committed
removeLists from Tag
1 parent e4d80f7 commit 301c5ff

File tree

5 files changed

+0
-46
lines changed

5 files changed

+0
-46
lines changed

+nix/Tag.m

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@
8585
% References methods
8686
% ------------------
8787

88-
function refList = list_references(obj)
89-
refList = nix_mx('Tag::listReferences', obj.nix_handle);
90-
end;
91-
9288
function retObj = open_reference(obj, id_or_name)
9389
handle = nix_mx('Tag::openReferenceDataArray', obj.nix_handle, id_or_name);
9490
retObj = {};
@@ -116,10 +112,6 @@
116112
% Features methods
117113
% ------------------
118114

119-
function featureList = list_features(obj)
120-
featureList = nix_mx('Tag::listFeatures', obj.nix_handle);
121-
end;
122-
123115
function retObj = open_feature(obj, id_or_name)
124116
handle = nix_mx('Tag::openFeature', obj.nix_handle, id_or_name);
125117
retObj = {};
@@ -147,10 +139,6 @@
147139
% Sources methods
148140
% ------------------
149141

150-
function sourceList = list_sources(obj)
151-
sourceList = nix_mx('Tag::listSources', obj.nix_handle);
152-
end;
153-
154142
function retObj = open_source(obj, id_or_name)
155143
handle = nix_mx('Tag::openSource', obj.nix_handle, id_or_name);
156144
retObj = {};

nix_mx.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ const std::vector<fendpoint> funcs = {
6666

6767
// Tag
6868
{ "Tag::describe", nixtag::describe },
69-
{ "Tag::listReferences", nixtag::list_references_array },
70-
{ "Tag::listFeatures", nixtag::list_features },
71-
{ "Tag::listSources", nixtag::list_sources },
7269
{ "Tag::retrieveData", nixtag::retrieve_data },
7370
{ "Tag::featureRetrieveData", nixtag::retrieve_feature_data },
7471

src/nixtag.cc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,6 @@ namespace nixtag {
2828
output.set(0, sb.array());
2929
}
3030

31-
void list_references_array(const extractor &input, infusor &output)
32-
{
33-
nix::Tag currObj = input.entity<nix::Tag>(1);
34-
output.set(0, nixgen::list_data_arrays(currObj.references()));
35-
}
36-
37-
void list_features(const extractor &input, infusor &output)
38-
{
39-
nix::Tag currObj = input.entity<nix::Tag>(1);
40-
output.set(0, nixgen::list_features(currObj.features()));
41-
}
42-
43-
void list_sources(const extractor &input, infusor &output)
44-
{
45-
nix::Tag currObj = input.entity<nix::Tag>(1);
46-
output.set(0, nixgen::list_sources(currObj.sources()));
47-
}
48-
4931
void retrieve_data(const extractor &input, infusor &output) {
5032
nix::Tag currObj = input.entity<nix::Tag>(1);
5133
double index = input.num<double>(2);

src/nixtag.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ namespace nixtag {
77

88
void describe(const extractor &input, infusor &output);
99

10-
void list_references_array(const extractor &input, infusor &output);
11-
12-
void list_features(const extractor &input, infusor &output);
13-
14-
void list_sources(const extractor &input, infusor &output);
15-
1610
void retrieve_data(const extractor &input, infusor &output);
1711

1812
void retrieve_feature_data(const extractor &input, infusor &output);

tests/TestTag.m

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
getBlock = test_file.openBlock(test_file.blocks{1,1}.name);
2121
getTag = getBlock.open_tag(getBlock.tags{1,1}.id);
2222

23-
assert(size(getTag.list_references(), 1) == 1);
2423
assert(size(getTag.references(), 1) == 1);
2524
end
2625

@@ -31,9 +30,6 @@
3130
getTag = getBlock.open_tag(getBlock.tags{1,1}.id);
3231

3332
%-- ToDo get testfile with tag referencing a source
34-
assert(size(getTag.list_sources(),1) == 0);
35-
disp('Test Tag: list sources from tag ... TODO (proper testfile)');
36-
3733
assert(size(getTag.sources(),1) == 0);
3834
disp('Test Tag: fetch sources ... TODO (proper testfile)');
3935
end
@@ -46,9 +42,6 @@
4642
getTag = getBlock.open_tag(getBlock.tags{1,1}.id);
4743

4844
%-- ToDo get testfile with tag referencing a source
49-
assert(size(getTag.list_features(),1) == 0);
50-
disp('Test Tag: list features ... TODO (proper testfile)');
51-
5245
assert(size(getTag.features(),1) == 0);
5346
disp('Test Tag: fetch features ... TODO (proper testfile)');
5447
end

0 commit comments

Comments
 (0)