]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsclocks: remove unused code
authorKarel Zak <kzak@redhat.com>
Thu, 3 Aug 2023 11:46:32 +0000 (13:46 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 3 Aug 2023 11:46:32 +0000 (13:46 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsclocks.c

index a8531510a5440b4e46bb3ef1080d36f21c44108f..8bdfd5ed46f39c3483da059a7bfa4365eca72214 100644 (file)
 #include "all-io.h"
 #include "list.h"
 
-#define CLOCKFD 3
-
-static inline clockid_t FD_TO_CLOCKID(int fd)
-{
-       return (~(unsigned int) fd << 3) | CLOCKFD;
-}
-
-static inline int CLOCKID_TO_FD(clockid_t clk)
-{
-       return ~(clk >> 3);
-}
-
-static inline bool CLOCKID_IS_DYNAMIC(clockid_t clk)
-{
-       return CLOCKID_TO_FD(clk) <= 0;
-}
-
 #ifndef CLOCK_REALTIME
 #define CLOCK_REALTIME                 0
 #endif