From 4dec20e4ff11b61be57a6cfbdb289327d9e1eb7d Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 25 Feb 2025 23:43:41 +0000 Subject: the Restructuring --- channel.lua | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 channel.lua (limited to 'channel.lua') diff --git a/channel.lua b/channel.lua deleted file mode 100644 index e908069..0000000 --- a/channel.lua +++ /dev/null @@ -1,15 +0,0 @@ --- channel descriptor - -local Channel = {} -function Channel.make(pylon, descriptor) - return setmetatable({pylon=pylon, descriptor=descriptor}, Channel) -end -function Channel.__eq(self, other) - return self.pylon == other.pylon and self.descriptor == other.descriptor -end -function Channel.__call(_, ...) return Channel.make(...) end -function Channel.__tostring(self) - return self.pylon.name .. ':' .. self.descriptor -end -setmetatable(Channel, Channel) -return Channel -- cgit v1.2.3