File 2182-kernel-Remove-commented-out-code.patch of Package erlang

From db98e5be02e5153439921d41cecd199c8bf55b15 Mon Sep 17 00:00:00 2001
From: Hans Bolinder <hasse@erlang.org>
Date: Wed, 12 Jun 2019 10:43:28 +0200
Subject: [PATCH 02/10] kernel: Remove commented out code

---
 lib/kernel/src/group.erl |  8 +-------
 lib/kernel/src/user.erl  | 53 +-----------------------------------------------
 2 files changed, 2 insertions(+), 59 deletions(-)

diff --git a/lib/kernel/src/group.erl b/lib/kernel/src/group.erl
index 5625ae6eb7..8c0ced8678 100644
--- a/lib/kernel/src/group.erl
+++ b/lib/kernel/src/group.erl
@@ -1,7 +1,7 @@
 %%
 %% %CopyrightBegin%
 %%
-%% Copyright Ericsson AB 1996-2018. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2019. All Rights Reserved.
 %%
 %% Licensed under the Apache License, Version 2.0 (the "License");
 %% you may not use this file except in compliance with the License.
@@ -795,12 +795,6 @@ save_line({stack, U, _L, D}, Line) ->
     {stack, U, Line, D}.
 
 get_lines(Ls) -> get_all_lines(Ls).
-%get_lines({stack, U, {}, []}) ->
-%    U;
-%get_lines({stack, U, {}, D}) ->
-%    tl(lists:reverse(D, U));
-%get_lines({stack, U, L, D}) ->
-%    get_lines({stack, U, {}, [L|D]}).
 
 %% There's a funny behaviour whenever the line stack doesn't have a "\n"
 %% at its end -- get_lines() seemed to work on the assumption it *will* be
diff --git a/lib/kernel/src/user.erl b/lib/kernel/src/user.erl
index 5a3487a9ba..81520dd841 100644
--- a/lib/kernel/src/user.erl
+++ b/lib/kernel/src/user.erl
@@ -537,54 +537,6 @@ get_line_doit(Prompt, Port, Q, Accu, Enc) ->
 binrev(L, T) ->
     list_to_binary(lists:reverse(L, T)).
 
-%%  is_cr_at(Pos,Bin) ->
-%%      case Bin of
-%%  	<<_:Pos/binary,$\r,_/binary>> ->
-%%  	    true;
-%%  	_ ->
-%%  	    false
-%%      end.
-
-%%  collect_line_bin_re(Bin,_Data,Stack,_) ->
-%%      case re:run(Bin,<<"\n">>) of
-%%  	nomatch ->
-%%  	    X = byte_size(Bin)-1,
-%%  	    case is_cr_at(X,Bin) of
-%%  		true ->
-%%  		    <<D:X/binary,_/binary>> = Bin,
-%%  		    [<<$\r>>,D|Stack]; 
-%%  		false ->
-%%  		    [Bin|Stack]
-%%  	    end;
-%%  	{match,[{Pos,1}]} ->
-%%  	    PosPlus = Pos + 1,
-%%  	    case Stack of
-%%  		[] ->
-%%  		    case is_cr_at(Pos - 1,Bin) of
-%%  			false ->
-%%  			    <<Head:PosPlus/binary,Tail/binary>> = Bin, 
-%%  			    {stop, Head, Tail};
-%%  			true ->
-%%  			    PosMinus = Pos - 1,
-%%  			    <<Head:PosMinus/binary,_,_,Tail/binary>> = Bin,
-%%  			    {stop, binrev([],[Head,$\n]),Tail}
-%%  		    end;
-%%  		[<<$\r>>|Stack1] when Pos =:= 0 ->
-
-%%  		    <<_:PosPlus/binary,Tail/binary>> = Bin, 
-%%  		    {stop,binrev(Stack1, [$\n]),Tail};
-%%  		_ ->
-%%  		    case is_cr_at(Pos - 1,Bin) of
-%%  			false ->
-%%  			    <<Head:PosPlus/binary,Tail/binary>> = Bin, 
-%%  			    {stop,binrev(Stack, [Head]),Tail};
-%%  			true ->
-%%  			    PosMinus = Pos - 1,
-%%  			    <<Head:PosMinus/binary,_,_,Tail/binary>> = Bin,
-%%  			    {stop, binrev(Stack,[Head,$\n]),Tail}
-%%  		    end
-%%  	    end
-%%      end.
 %% get_chars(Prompt, Module, Function, XtraArg, Port, Queue, Encoding)
 %%  Gets characters from the input port until the applied function
 %%  returns {stop,Result,RestBuf}. Does not block output until input 
@@ -618,9 +570,6 @@ get_chars(Prompt, M, F, Xa, Port, Q, State, Enc) ->
 		{Port, eof} ->
 		    put(eof, true),
 		    {ok, eof, queue:new()};
-		%%{io_request,From,ReplyAs,Request} when is_pid(From) ->
-		%%    get_chars_req(Prompt, M, F, Xa, Port, queue:new(), State,
-		%%		  Request, From, ReplyAs);
                 {io_request,From,ReplyAs,{get_geometry,_}=Req} when is_pid(From) ->
                     do_io_request(Req, From, ReplyAs, Port, 
                                   queue:new()), %Keep Q over this call
-- 
2.16.4

openSUSE Build Service is sponsored by