File 0113-Removes-redundant-function-clause.patch of Package erlang
From ca34a6c16a146cb5780a9c28cb5614e2e846d318 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jimmy=20Z=C3=B6ger?= <jimmy.zoger@kivra.com>
Date: Wed, 8 Mar 2017 14:11:53 +0100
Subject: [PATCH 1/2] Removes redundant function clause
---
lib/xmerl/src/xmerl_scan.erl | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/xmerl/src/xmerl_scan.erl b/lib/xmerl/src/xmerl_scan.erl
index 95dc82e5c..4eacb9fc4 100644
--- a/lib/xmerl/src/xmerl_scan.erl
+++ b/lib/xmerl/src/xmerl_scan.erl
@@ -474,8 +474,6 @@ event(_X, S) ->
%% into multiple objects (in which case {Acc',Pos',S'} should be returned.)
%% If {Acc',S'} is returned, Pos will be incremented by 1 by default.
%% Below is an example of an acceptable operation
-acc(X = #xmlText{value = Text}, Acc, S) ->
- {[X#xmlText{value = Text}|Acc], S};
acc(X, Acc, S) ->
{[X|Acc], S}.
--
2.12.2