From c501cc038a2f58c2f2a99047c7697f1624b942b8 Mon Sep 17 00:00:00 2001 From: Vishnu kannan Date: Wed, 6 Jul 2016 15:23:01 -0700 Subject: [PATCH] Remove unused GetLongBit() function. Signed-off-by: Vishnu kannan --- libcontainer/system/sysconfig.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/libcontainer/system/sysconfig.go b/libcontainer/system/sysconfig.go index 4fba6c2b..b3a07cba 100644 --- a/libcontainer/system/sysconfig.go +++ b/libcontainer/system/sysconfig.go @@ -4,28 +4,9 @@ package system /* #include -#include - -int GetLongBit() { -#ifdef _SC_LONG_BIT - int longbits; - - longbits = sysconf(_SC_LONG_BIT); - if (longbits < 0) { - longbits = (CHAR_BIT * sizeof(long)); - } - return longbits; -#else - return (CHAR_BIT * sizeof(long)); -#endif -} */ import "C" func GetClockTicks() int { return int(C.sysconf(C._SC_CLK_TCK)) } - -func GetLongBit() int { - return int(C.GetLongBit()) -}