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_arm64.s | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/runtime/sys_linux_arm64.s') diff --git a/src/runtime/sys_linux_arm64.s b/src/runtime/sys_linux_arm64.s index d8efc50072..06a9efab99 100644 --- a/src/runtime/sys_linux_arm64.s +++ b/src/runtime/sys_linux_arm64.s @@ -29,7 +29,6 @@ #define SYS_rt_sigaction 134 #define SYS_rt_sigprocmask 135 #define SYS_sigaltstack 132 -#define SYS_getrlimit 163 #define SYS_madvise 233 #define SYS_mincore 232 #define SYS_getpid 172 @@ -116,14 +115,6 @@ done: MOVW R0, ret+24(FP) RET -TEXT runtimeĀ·getrlimit(SB),NOSPLIT|NOFRAME,$0-20 - MOVW kind+0(FP), R0 - MOVD limit+8(FP), R1 - MOVD $SYS_getrlimit, R8 - SVC - MOVW R0, ret+16(FP) - RET - TEXT runtimeĀ·usleep(SB),NOSPLIT,$24-4 MOVWU usec+0(FP), R3 MOVD R3, R5 -- cgit v1.3-5-g9baa