Removed duplicated methods on (nowadays) equivalent type C.io_*_t
This is due to improvements on the cgo builder related to darwin OS.
This commit is contained in:
@@ -140,11 +140,6 @@ func (me *C.io_registry_entry_t) GetParent(plane string) (C.io_registry_entry_t,
|
||||
return parent, nil
|
||||
}
|
||||
|
||||
func (me *C.io_registry_entry_t) GetClass() string {
|
||||
obj := (*C.io_object_t)(me)
|
||||
return obj.GetClass()
|
||||
}
|
||||
|
||||
func (me *C.io_registry_entry_t) GetStringProperty(key string) (string, error) {
|
||||
k := cfStringCreateWithString(key)
|
||||
defer C.CFRelease(C.CFTypeRef(k))
|
||||
@@ -201,10 +196,6 @@ func (me *C.io_iterator_t) Next() (C.io_object_t, bool) {
|
||||
return res, res != 0
|
||||
}
|
||||
|
||||
func (me *C.io_iterator_t) Release() {
|
||||
C.IOObjectRelease(C.io_object_t(*me))
|
||||
}
|
||||
|
||||
// io_object_t
|
||||
|
||||
func (me *C.io_object_t) Release() {
|
||||
|
||||
Reference in New Issue
Block a user