Skip to content

Commit b4a0147

Browse files
committed
[Matlab] Remove nix.Property.mapping
Closes #152
1 parent 267e10c commit b4a0147

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

+nix/Property.m

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

2626
% assign dynamic properties
2727
nix.Dynamic.add_dyn_attr(obj, 'unit', 'rw');
28-
nix.Dynamic.add_dyn_attr(obj, 'mapping', 'rw');
2928
nix.Dynamic.add_dyn_attr(obj, 'datatype', 'r');
3029
end
3130

nix_mx.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,6 @@ void mexFunction(int nlhs,
441441
.reg("setNoneDefinition", SETTER(const boost::none_t, nix::Property, definition))
442442
.reg("setUnit", SETTER(const std::string&, nix::Property, unit))
443443
.reg("setNoneUnit", SETTER(const boost::none_t, nix::Property, unit))
444-
.reg("setMapping", SETTER(const std::string&, nix::Property, mapping))
445-
.reg("setNoneMapping", SETTER(const boost::none_t, nix::Property, mapping))
446444
.reg("valueCount", GETTER(nix::ndsize_t, nix::Property, valueCount))
447445
.reg("setNoneValue", SETTER(const boost::none_t, nix::Property, values));
448446

src/nixproperty.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@
1818
namespace nixproperty {
1919

2020
mxArray *describe(const nix::Property &prop) {
21-
struct_builder sb({ 1 }, { "id", "name", "definition", "unit", "mapping", "datatype" });
21+
struct_builder sb({ 1 }, { "id", "name", "definition", "unit", "datatype" });
2222

2323
sb.set(prop.id());
2424
sb.set(prop.name());
2525
sb.set(prop.definition());
2626
sb.set(prop.unit());
27-
sb.set(prop.mapping());
2827
sb.set(string_nix2mex(prop.dataType()));
2928

3029
return sb.array();

tests/TestProperty.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,14 @@
3434

3535
p.definition = 'property definition';
3636
p.unit = 'ms';
37-
p.mapping = 'property mapping';
3837
assert(strcmp(p.definition, 'property definition'));
3938
assert(strcmp(p.unit, 'ms'));
40-
assert(strcmp(p.mapping, 'property mapping'));
4139

4240
p.definition = 'next property definition';
4341
p.unit = 'mm';
44-
p.mapping = 'next property mapping';
4542

4643
p.definition = '';
4744
p.unit = '';
48-
p.mapping = '';
4945
assert(isempty(p.definition));
5046
assert(isempty(p.unit));
5147
end

0 commit comments

Comments
 (0)