Skip to content

Commit e350a5a

Browse files
committed
[clean] remove unwanted code
1 parent 4848b2d commit e350a5a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

jdict.m

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169

170170
% handle {} attribute access in navigation chain
171171
if (strcmp(idx.type, '{}') && iscell(idx.subs) && length(idx.subs) == 1 && ischar(idx.subs{1}))
172-
val = [obj.getattr(trackpath, idx.subs{1})];
172+
val = obj.getattr(trackpath, idx.subs{1});
173173
i = i + 1;
174174
continue
175175
end
@@ -374,14 +374,6 @@
374374
if (~isempty(dims) && iscell(dims))
375375
dimpos = find(strcmp(dims, dimname));
376376
if (~isempty(dimpos) && ~isempty(idxkey(oplen).subs))
377-
% navigate to the data
378-
data = obj.data;
379-
if (oplen > 2)
380-
data = subsref(obj, idxkey(1:oplen - 2));
381-
if (isa(data, 'jdict'))
382-
data = data.data;
383-
end
384-
end
385377
% build full indices
386378
nddata = length(dims);
387379
indices = cell(1, nddata);

0 commit comments

Comments
 (0)