File 0473-Cosmetic-trailing-whitespace-double-empty-lines.patch of Package erlang
From ab9cb03323bba91efa3119413e386b10a09cb0a0 Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Wed, 24 Oct 2018 15:01:31 +0200
Subject: [PATCH] Cosmetic: trailing whitespace + double empty lines
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
lib/kernel/src/net_kernel.erl | 35 +++++++----------------------------
1 file changed, 7 insertions(+), 28 deletions(-)
diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl
index 192cfd869e..4c51e0a790 100644
--- a/lib/kernel/src/net_kernel.erl
+++ b/lib/kernel/src/net_kernel.erl
@@ -135,7 +135,6 @@
node %% remote node name
}).
-
-record(tick, {ticker, %% ticker : pid()
time %% Ticktime in milli seconds : integer()
}).
@@ -213,7 +212,6 @@ set_net_ticktime(T) when is_integer(T) ->
get_net_ticktime() ->
ticktime_res(request(ticktime)).
-
%% The monitor_nodes() feature has been moved into the emulator.
%% The feature is reached via (intentionally) undocumented process
%% flags (we may want to move it elsewhere later). In order to easily
@@ -440,7 +435,6 @@ do_explicit_connect(_ConnLookup, Type, Node, ConnId, From , State) ->
{stop, Error}
end.
-
%% ------------------------------------------------------------
%% handle_call.
%% ------------------------------------------------------------
@@ -570,7 +562,6 @@ handle_call({publish_on_node, Node}, From, State) ->
end,
async_reply({reply, Publish, NewState}, From);
-
handle_call({verbose, Level}, From, State) ->
async_reply({reply, State#state.verbose, State#state{verbose = Level}},
From);
@@ -681,7 +672,6 @@ terminate(_Reason, State) ->
fun(Node) -> ?nodedown(Node, State)
end, get_nodes_up_normal() ++ [node()]).
-
%% ------------------------------------------------------------
%% handle_info.
%% ------------------------------------------------------------
@@ -809,7 +799,6 @@ handle_info({SetupPid, {is_pending, Node}}, State) ->
SetupPid ! {self(), {is_pending, Reply}},
{noreply, State};
-
%%
%% Handle different types of process terminations.
%%
@@ -1011,7 +1000,6 @@ up_pending_nodedown(Conn, Node, _Reason, _Type, State) ->
AcceptPid ! {self(), pending},
State#state{conn_owners = [{AcceptPid,Node}|Owners], pend_owners = Pend}.
-
up_nodedown(_Conn, Node, _Reason, Type, State) ->
mark_sys_dist_nodedown(Node),
case Type of
@@ -1033,7 +1021,6 @@ mark_sys_dist_nodedown(Conn, Node) ->
%% End handle_exit/2 !!
%% -----------------------------------------------------------
-
%% -----------------------------------------------------------
%% monitor_nodes/[1,2] errors
%% -----------------------------------------------------------
@@ -1117,7 +1104,6 @@ do_disconnect(Node, State) ->
{false, State}
end.
-
disconnect_pid(Pid, State) ->
exit(Pid, disconnect),
%% Sync wait for connection to die!!!
@@ -1297,7 +1281,6 @@ select_mod(Node, [L|Ls]) ->
select_mod(Node, []) ->
{error, {unsupported_address_type, Node}}.
-
get_proto_mod(Family,Protocol,[L|Ls]) ->
A = L#listen.address,
if A#net_address.family =:= Family,
@@ -1323,7 +1306,7 @@ init_node(Name, LongOrShortNames, CleanHalt) ->
Error
end;
Error ->
- Error
+ Error
end.
%% Create the node name
@@ -1432,7 +1415,6 @@ protocol_childspecs([H|T]) ->
protocol_childspecs(T)
end.
-
%%
%% epmd_module() -> module_name of erl_epmd or similar gen_server_module.
%%
@@ -1626,7 +1608,6 @@ reply_waiting1([From|W], Rep) ->
reply_waiting1([], _) ->
ok.
-
-ifdef(UNUSED).
delete_all(From, [From |Tail]) -> delete_all(From, Tail);
@@ -1687,7 +1668,6 @@ fmt_address(A) ->
lists:flatten(io_lib:format("~p", [A#net_address.address]))
end.
-
fetch(Key, Info) ->
case lists:keysearch(Key, 1, Info) of
{value, {_, Val}} -> Val;
--
2.16.4