File 3021-erl_bits.hrl-cleanup.patch of Package erlang

From 841fdfa1aa610ed82c85bd99d577e341598c3371 Mon Sep 17 00:00:00 2001
From: Ilya Klyuchnikov <ilyaklyuchnikov@fb.com>
Date: Thu, 23 Jul 2020 21:08:15 +0100
Subject: [PATCH] erl_bits.hrl cleanup

Removing macros and the record bitdefault - they are never used.
---
 bootstrap/lib/stdlib/include/erl_bits.hrl | 16 ----------------
 lib/stdlib/include/erl_bits.hrl           | 16 ----------------
 2 files changed, 32 deletions(-)

diff --git a/bootstrap/lib/stdlib/include/erl_bits.hrl b/bootstrap/lib/stdlib/include/erl_bits.hrl
index 2a54587a17..7810527832 100644
--- a/bootstrap/lib/stdlib/include/erl_bits.hrl
+++ b/bootstrap/lib/stdlib/include/erl_bits.hrl
@@ -31,19 +31,3 @@
           sign   :: bt_sign() | 'undefined',
           endian :: bt_endian() | 'undefined'
          }).
-
--record(bitdefault, {
-	  integer,    %% default type for integer
-	  float,      %% default type for float
-	  binary      %% default type for binary
-	 }).
-
-%%% (From config.hrl in the bitsyntax branch.)
--define(SYS_ENDIAN, big).
--define(SIZEOF_CHAR, 1).
--define(SIZEOF_DOUBLE, 8).
--define(SIZEOF_FLOAT, 4).
--define(SIZEOF_INT, 4).
--define(SIZEOF_LONG, 4).
--define(SIZEOF_LONG_LONG, 8).
--define(SIZEOF_SHORT, 2).
diff --git a/lib/stdlib/include/erl_bits.hrl b/lib/stdlib/include/erl_bits.hrl
index 2a54587a17..7810527832 100644
--- a/lib/stdlib/include/erl_bits.hrl
+++ b/lib/stdlib/include/erl_bits.hrl
@@ -31,19 +31,3 @@
           sign   :: bt_sign() | 'undefined',
           endian :: bt_endian() | 'undefined'
          }).
-
--record(bitdefault, {
-	  integer,    %% default type for integer
-	  float,      %% default type for float
-	  binary      %% default type for binary
-	 }).
-
-%%% (From config.hrl in the bitsyntax branch.)
--define(SYS_ENDIAN, big).
--define(SIZEOF_CHAR, 1).
--define(SIZEOF_DOUBLE, 8).
--define(SIZEOF_FLOAT, 4).
--define(SIZEOF_INT, 4).
--define(SIZEOF_LONG, 4).
--define(SIZEOF_LONG_LONG, 8).
--define(SIZEOF_SHORT, 2).
-- 
2.26.2

openSUSE Build Service is sponsored by