Skip to content

Commit c2002ef

Browse files
committed
removeLists from MultiTag
1 parent 301c5ff commit c2002ef

File tree

5 files changed

+0
-44
lines changed

5 files changed

+0
-44
lines changed

+nix/MultiTag.m

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@
7575
% References methods
7676
% ------------------
7777

78-
function refList = list_references(obj)
79-
refList = nix_mx('MultiTag::listReferences', obj.nix_handle);
80-
end;
81-
8278
function retObj = open_reference(obj, id_or_name)
8379
handle = nix_mx('MultiTag::openReferences', obj.nix_handle, id_or_name);
8480
retObj = {};
@@ -108,10 +104,6 @@
108104
% Features methods
109105
% ------------------
110106

111-
function featureList = list_features(obj)
112-
featureList = nix_mx('MultiTag::listFeatures', obj.nix_handle);
113-
end;
114-
115107
function retObj = open_feature(obj, id_or_name)
116108
handle = nix_mx('MultiTag::openFeature', obj.nix_handle, id_or_name);
117109
retObj = {};
@@ -141,10 +133,6 @@
141133
% Sources methods
142134
% ------------------
143135

144-
function sourceList = list_sources(obj)
145-
sourceList = nix_mx('MultiTag::listSources', obj.nix_handle);
146-
end;
147-
148136
function retObj = open_source(obj, id_or_name)
149137
handle = nix_mx('MultiTag::openSource', obj.nix_handle, id_or_name);
150138
retObj = {};

nix_mx.cc

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

7272
// Multi Tag
7373
{ "MultiTag::describe", nixmultitag::describe },
74-
{ "MultiTag::listReferences", nixmultitag::list_references_array },
75-
{ "MultiTag::listFeatures", nixmultitag::list_features },
76-
{ "MultiTag::listSources", nixmultitag::list_sources },
7774
{ "MultiTag::retrieveData", nixmultitag::retrieve_data },
7875
{ "MultiTag::featureRetrieveData", nixmultitag::retrieve_feature_data },
7976

src/nixmultitag.cc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,6 @@ namespace nixmultitag {
2525
output.set(0, sb.array());
2626
}
2727

28-
void list_references_array(const extractor &input, infusor &output)
29-
{
30-
nix::MultiTag currObj = input.entity<nix::MultiTag>(1);
31-
output.set(0, nixgen::list_data_arrays(currObj.references()));
32-
}
33-
34-
void list_features(const extractor &input, infusor &output)
35-
{
36-
nix::MultiTag currObj = input.entity<nix::MultiTag>(1);
37-
output.set(0, nixgen::list_features(currObj.features()));
38-
}
39-
40-
void list_sources(const extractor &input, infusor &output)
41-
{
42-
nix::MultiTag currObj = input.entity<nix::MultiTag>(1);
43-
output.set(0, nixgen::list_sources(currObj.sources()));
44-
}
45-
4628
void retrieve_data(const extractor &input, infusor &output) {
4729
nix::MultiTag currObj = input.entity<nix::MultiTag>(1);
4830
double p_index = input.num<double>(2);

src/nixmultitag.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ namespace nixmultitag {
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/TestMultiTag.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
getBlock = test_file.openBlock(test_file.blocks{1,1}.name);
2424
getMultiTag = getBlock.open_multi_tag(getBlock.multiTags{1,1}.id);
2525

26-
assert(size(getMultiTag.list_references(), 1) == 1);
2726
assert(size(getMultiTag.references(), 1) == 1);
2827
end
2928

@@ -33,7 +32,6 @@
3332
getBlock = test_file.openBlock(test_file.blocks{1,1}.name);
3433
getMultiTag = getBlock.open_multi_tag(getBlock.multiTags{1,1}.id);
3534

36-
assert(size(getMultiTag.list_sources(),1) == 1);
3735
assert(size(getMultiTag.sources(),1) == 1);
3836
end
3937

@@ -44,9 +42,6 @@
4442
getMultiTag = getBlock.open_multi_tag(getBlock.multiTags{1,1}.id);
4543

4644
%-- ToDo get testfile with tag referencing a source
47-
assert(size(getMultiTag.list_features(),1) == 0);
48-
disp('Test MultiTag: list features ... TODO (proper testfile)');
49-
5045
assert(size(getMultiTag.features(),1) == 0);
5146
disp('Test MultiTag: fetch features ... TODO (proper testfile)');
5247
end

0 commit comments

Comments
 (0)