about summary refs log tree commit homepage
path: root/lib/PublicInbox/Syscall.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-12-23 12:51:07 +0000
committerEric Wong <e@80x24.org>2022-12-23 22:20:36 +0000
commitd8f49eed19346690c33f5d9da5fbaf041f065f0f (patch)
treeb10fffa3a206280f1ef783960c9556ddbb2fbedf /lib/PublicInbox/Syscall.pm
parent1556c660030b7ebb4006f522026e638285e94f46 (diff)
downloadpublic-inbox-d8f49eed19346690c33f5d9da5fbaf041f065f0f.tar.gz
We can just check defined() on the `our' var itself and
save the process several kilobytes of memory.
Diffstat (limited to 'lib/PublicInbox/Syscall.pm')
-rw-r--r--lib/PublicInbox/Syscall.pm2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/PublicInbox/Syscall.pm b/lib/PublicInbox/Syscall.pm
index ee4c6107..bda9bbb0 100644
--- a/lib/PublicInbox/Syscall.pm
+++ b/lib/PublicInbox/Syscall.pm
@@ -285,8 +285,6 @@ if ($^O eq "linux") {
 # epoll functions
 ############################################################################
 
-sub epoll_defined { $SYS_epoll_create ? 1 : 0; }
-
 sub epoll_create {
         syscall($SYS_epoll_create, $no_deprecated ? 0 : 100);
 }