diff options
author | ubq323 <ubq323@ubq323.website> | 2025-02-27 23:23:57 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2025-02-27 23:23:57 +0000 |
commit | 5dea96ad915692e9abbc0620930756c51c256179 (patch) | |
tree | 881d7680a521474f262bac262f382e778c1fc191 /util/channel.lua | |
parent | ec4053dea479c3c85d57c447e262a90addcce5c3 (diff) |
restructure, refactor, a bit
Diffstat (limited to 'util/channel.lua')
-rw-r--r-- | util/channel.lua | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/util/channel.lua b/util/channel.lua deleted file mode 100644 index e908069..0000000 --- a/util/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 |