From 7c9af844d83e300b9a1024dccfb1270b9a338f8f Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Fri, 9 Aug 2019 14:25:22 +0200 Subject: erts: Remove unused process_reg_size function --- erts/emulator/beam/register.c | 12 ------------ erts/emulator/beam/register.h | 1 - 2 files changed, 13 deletions(-) (limited to 'erts/emulator') diff --git a/erts/emulator/beam/register.c b/erts/emulator/beam/register.c index c7e02c6d48..2b50f5a303 100644 --- a/erts/emulator/beam/register.c +++ b/erts/emulator/beam/register.c @@ -564,18 +564,6 @@ int erts_unregister_name(Process *c_p, return res; } -int process_reg_size(void) -{ - int size; - int lock = !ERTS_IS_CRASH_DUMPING; - if (lock) - reg_read_lock(); - size = process_reg.size; - if (lock) - reg_read_unlock(); - return size; -} - int process_reg_sz(void) { int sz; diff --git a/erts/emulator/beam/register.h b/erts/emulator/beam/register.h index 27a314ca78..c77bd03653 100644 --- a/erts/emulator/beam/register.h +++ b/erts/emulator/beam/register.h @@ -41,7 +41,6 @@ typedef struct reg_proc Eterm name; /* Atom name */ } RegProc; -int process_reg_size(void); int process_reg_sz(void); void init_register_table(void); void register_info(fmtfn_t, void *); -- cgit v1.2.3