Skip to content

Commit 18cd034

Browse files
committed
removeLists from Source
1 parent c2002ef commit 18cd034

File tree

5 files changed

+0
-16
lines changed

5 files changed

+0
-16
lines changed

+nix/Source.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252
% Sources methods
5353
% ------------------
5454

55-
function sourcesList = list_sources(obj)
56-
sourcesList = nix_mx('Source::listSources', obj.nix_handle);
57-
end;
58-
5955
function retObj = open_source(obj, id_or_name)
6056
handle = nix_mx('Source::openSource', obj.nix_handle, id_or_name);
6157
retObj = {};

nix_mx.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ const std::vector<fendpoint> funcs = {
7676

7777
// Source
7878
{ "Source::describe", nixsource::describe },
79-
{ "Source::listSources", nixsource::list_sources },
8079

8180
// Feature
8281
{ "Feature::describe", nixfeature::describe },

src/nixsource.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,4 @@ namespace nixsource {
2222
output.set(0, sb.array());
2323
}
2424

25-
void list_sources(const extractor &input, infusor &output)
26-
{
27-
nix::Source currObj = input.entity<nix::Source>(1);
28-
output.set(0, nixgen::list_sources(currObj.sources()));
29-
}
30-
3125
} // namespace nixsource

src/nixsource.h

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

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

10-
void list_sources(const extractor &input, infusor &output);
11-
1210
} // namespace nixsource
1311

1412
#endif

tests/TestSource.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
getSourceFromBlock = getBlock.open_source(getBlock.sources{1,1}.id);
1616

1717
%-- TODO: get a testfile with nested sources
18-
assert(size(getSourceFromBlock.list_sources(),1) == 0);
19-
disp('Test Source: list sources ... TODO (proper testfile)');
20-
2118
assert(size(getSourceFromBlock.sources(), 1) == 0);
2219
disp('Test Source: fetch sources ... TODO (proper testfile)');
2320
end

0 commit comments

Comments
 (0)