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_386.s | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/runtime/sys_linux_386.s') diff --git a/src/runtime/sys_linux_386.s b/src/runtime/sys_linux_386.s index bc3b8dbb1c..1e63dee4a1 100644 --- a/src/runtime/sys_linux_386.s +++ b/src/runtime/sys_linux_386.s @@ -43,7 +43,6 @@ #define SYS_rt_sigaction 174 #define SYS_rt_sigprocmask 175 #define SYS_sigaltstack 186 -#define SYS_ugetrlimit 191 #define SYS_mmap2 192 #define SYS_mincore 218 #define SYS_madvise 219 @@ -132,14 +131,6 @@ TEXT runtime·read(SB),NOSPLIT,$0 MOVL AX, ret+12(FP) RET -TEXT runtime·getrlimit(SB),NOSPLIT,$0 - MOVL $SYS_ugetrlimit, AX - MOVL kind+0(FP), BX - MOVL limit+4(FP), CX - INVOKE_SYSCALL - MOVL AX, ret+8(FP) - RET - TEXT runtime·usleep(SB),NOSPLIT,$8 MOVL $0, DX MOVL usec+0(FP), AX -- cgit v1.3-5-g9baa