Skip to content

Commit c501cc0

Browse files
committed
Remove unused GetLongBit() function.
Signed-off-by: Vishnu kannan <[email protected]>
1 parent 8dd3d63 commit c501cc0

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

libcontainer/system/sysconfig.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,9 @@ package system
44

55
/*
66
#include <unistd.h>
7-
#include <limits.h>
8-
9-
int GetLongBit() {
10-
#ifdef _SC_LONG_BIT
11-
int longbits;
12-
13-
longbits = sysconf(_SC_LONG_BIT);
14-
if (longbits < 0) {
15-
longbits = (CHAR_BIT * sizeof(long));
16-
}
17-
return longbits;
18-
#else
19-
return (CHAR_BIT * sizeof(long));
20-
#endif
21-
}
227
*/
238
import "C"
249

2510
func GetClockTicks() int {
2611
return int(C.sysconf(C._SC_CLK_TCK))
2712
}
28-
29-
func GetLongBit() int {
30-
return int(C.GetLongBit())
31-
}

0 commit comments

Comments
 (0)