From 1b1c8b34d129eefcdbad234914df999581e62b2f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 16 Feb 2018 11:26:14 +0100 Subject: runtime: remove unused getrlimit function Follow CL 93655 which removed the (commented-out) usage of this function. Also remove unused constant _RLIMIT_AS and type rlimit. Change-Id: Ifb6e6b2104f4c2555269f8ced72bfcae24f5d5e9 Reviewed-on: https://go-review.googlesource.com/94775 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Austin Clements --- src/runtime/sys_linux_arm.s | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/runtime/sys_linux_arm.s') diff --git a/src/runtime/sys_linux_arm.s b/src/runtime/sys_linux_arm.s index 0869d9349f..ef72ae0308 100644 --- a/src/runtime/sys_linux_arm.s +++ b/src/runtime/sys_linux_arm.s @@ -37,7 +37,6 @@ #define SYS_tkill (SYS_BASE + 238) #define SYS_sched_yield (SYS_BASE + 158) #define SYS_pselect6 (SYS_BASE + 335) -#define SYS_ugetrlimit (SYS_BASE + 191) #define SYS_sched_getaffinity (SYS_BASE + 242) #define SYS_clock_gettime (SYS_BASE + 263) #define SYS_epoll_create (SYS_BASE + 250) @@ -98,14 +97,6 @@ TEXT runtime·read(SB),NOSPLIT,$0 MOVW R0, ret+12(FP) RET -TEXT runtime·getrlimit(SB),NOSPLIT,$0 - MOVW kind+0(FP), R0 - MOVW limit+4(FP), R1 - MOVW $SYS_ugetrlimit, R7 - SWI $0 - MOVW R0, ret+8(FP) - RET - TEXT runtime·exit(SB),NOSPLIT|NOFRAME,$0 MOVW code+0(FP), R0 MOVW $SYS_exit_group, R7 -- cgit v1.3-5-g9baa