From b16ddbd942b4123881f193cabfb905314a0b629e Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Thu, 3 May 2018 10:26:17 +0000 Subject: [PATCH] deleted unneeded methods --- moo/kernel/Socket.moo | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/moo/kernel/Socket.moo b/moo/kernel/Socket.moo index 6a9e437..2dfb9e5 100644 --- a/moo/kernel/Socket.moo +++ b/moo/kernel/Socket.moo @@ -230,7 +230,6 @@ class AsyncHandle(Object) ## the handle must be the first field in this object to match ## the internal representation used by various modules. (e.g. sck) var(#get) handle := -1. - var outsem := nil. ##method initialize ##{ @@ -241,29 +240,11 @@ class AsyncHandle(Object) { if (self.handle >= 0) { - ###if (self.insem notNil) - ###{ - ### System unsignal: self.insem; - ### removeAsyncSemaphore: self.insem. - ### self.insem := nil. - ###}. - if (self.outsem notNil) - { - System unsignal: self.outsem; - removeAsyncSemaphore: self.outsem. - self.outsem := nil. - }. - self _close. self.handle := -1. } } - method writeBytes: bytes signal: sem - { - ^self writeBytes: bytes offset: 0 length: (bytes size) - } - method writeBytes: bytes offset: offset length: length { ^self writeBytes: bytes offset: offset length: length. @@ -402,8 +383,6 @@ extend Socket self.eventActions at: event_type put: action_block. } - - method connect: target { | sem |