Skip to content

Commit 9f218ac

Browse files
committed
Fix compiler warnings
1 parent 1ea2037 commit 9f218ac

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

src/ecli_expand.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ parse([space], MenuItems, Acc, Txn, Cmd) ->
4949
?DBG("Expanding after space = ~p~n", [Acc]),
5050
?DBG("Expanding after space menuitems = ~p~n", [MenuItems]),
5151
expand_after_space(MenuItems, Acc, Txn, Cmd);
52-
parse([{part_string, Str}], _Tree, Acc, _Txn, _Cmd) ->
52+
parse([{part_string, _Str}], _Tree, _Acc, _Txn, _Cmd) ->
5353
%% Nothing we can do here, the user need to carry on typing their string
5454
%% (Or, maybe this is part of a list key we could complete... future)
55-
?DBG("Expanding part string = ~p when Acc = ~n", [Str, Acc]),
55+
?DBG("Expanding part string = ~p when Acc = ~n", [_Str, _Acc]),
5656
no;
5757
parse([{token, Tok} | Ts], Tree, [], Txn, Cmd) ->
5858
%% A token at the start. Expect it to match a container in the initial Tree.

src/ecli_util.erl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ children(#{node_type := container, children := Cs} = Item, _Txn, _CmdType) ->
2626
insert_full_path(Children, Path);
2727
children(#{node_type := list,
2828
path := Path,
29-
name := Name,
3029
children := Cs,
3130
data_callback := DataCallbackMod,
3231
key_names := KeyNames,
@@ -130,12 +129,6 @@ list_keys_match(SoFar, Needed, Keys) ->
130129
Pattern = Keys ++ ['$1'] ++ lists:duplicate(Needed - SoFar - 1, '_'),
131130
list_to_tuple(Pattern).
132131

133-
%% Append Item to path once we are past the command part of the string
134-
items_path(Path, #{role := cmd}) ->
135-
Path;
136-
items_path(Path, #{name := Name}) ->
137-
Path ++ [Name].
138-
139132
insert_full_path(Children, Path) ->
140133
lists:map(fun(#{role := cmd} = S) -> S#{path => Path};
141134
(#{name := Name} = S) -> S#{path => Path ++ [Name]}

0 commit comments

Comments
 (0)