Skip to content

Commit 267e10c

Browse files
committed
[Matlab] Remove nix.Section.mapping
1 parent c4219c2 commit 267e10c

File tree

5 files changed

+1
-12
lines changed

5 files changed

+1
-12
lines changed

+nix/Section.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
% assign dynamic properties
2323
nix.Dynamic.add_dyn_attr(obj, 'repository', 'rw');
24-
nix.Dynamic.add_dyn_attr(obj, 'mapping', 'rw');
2524

2625
% assign relations
2726
nix.Dynamic.add_dyn_relation(obj, 'sections', @nix.Section);

nix_mx.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,6 @@ void mexFunction(int nlhs,
411411
.reg("setNoneDefinition", SETTER(const boost::none_t, nix::Section, definition))
412412
.reg("setRepository", SETTER(const std::string&, nix::Section, repository))
413413
.reg("setNoneRepository", SETTER(const boost::none_t, nix::Section, repository))
414-
.reg("setMapping", SETTER(const std::string&, nix::Section, mapping))
415-
.reg("setNoneMapping", SETTER(const boost::none_t, nix::Section, mapping))
416414
.reg("createSection", &nix::Section::createSection)
417415
.reg("deleteSection", REMOVER(nix::Section, nix::Section, deleteSection))
418416
.reg("openProperty", GETBYSTR(nix::Property, nix::Section, getProperty))

src/nixsection.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ namespace nixsection {
2121

2222
mxArray *describe(const nix::Section &section) {
2323
struct_builder sb({ 1 }, {
24-
"name", "id", "type", "definition", "repository", "mapping"
24+
"name", "id", "type", "definition", "repository"
2525
});
2626

2727
sb.set(section.name());
2828
sb.set(section.id());
2929
sb.set(section.type());
3030
sb.set(section.definition());
3131
sb.set(section.repository());
32-
sb.set(section.mapping());
3332

3433
return sb.array();
3534
}

tests/TestProperty.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
assert(isempty(p.definition));
3333
assert(isempty(p.unit));
34-
assert(isempty(s.mapping));
3534

3635
p.definition = 'property definition';
3736
p.unit = 'ms';
@@ -49,7 +48,6 @@
4948
p.mapping = '';
5049
assert(isempty(p.definition));
5150
assert(isempty(p.unit));
52-
assert(isempty(s.mapping));
5351
end
5452

5553
%% Test: Access values

tests/TestSection.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,24 +159,19 @@
159159
assert(strcmp(s.name, 'foo'));
160160
assert(strcmp(s.type, 'bar'));
161161
assert(isempty(s.repository));
162-
assert(isempty(s.mapping));
163162
assert(isempty(s.definition));
164163

165164
s.type = 'nixBlock';
166165
s.definition = 'section definition';
167166
s.repository = 'rep1';
168-
s.mapping = 'map1';
169167
assert(strcmp(s.type, 'nixBlock'));
170168
assert(strcmp(s.definition, 'section definition'));
171169
assert(strcmp(s.repository, 'rep1'));
172-
assert(strcmp(s.mapping, 'map1'));
173170

174171
s.definition = '';
175172
s.repository = '';
176-
s.mapping = '';
177173
assert(isempty(s.definition));
178174
assert(isempty(s.repository));
179-
assert(isempty(s.mapping));
180175
end
181176

182177
function [] = test_properties( varargin )

0 commit comments

Comments
 (0)