Skip to content

Commit 00dea85

Browse files
committed
Comment out unused and slightly broken code
1 parent 33ef834 commit 00dea85

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

lib/mpsgraphs/core.jl

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ function MPSGraph()
99
MPSGraph(@objc [MPSGraph new]::id{MPSGraph})
1010
end
1111

12-
# @objcwrapper MPSGraphShapedType <: MPSGraphType
13-
function MPSGraphShapedType(shape::MPSShape, dataType)
14-
tmp = @objc [MPSGraphShapedType alloc]::id{MPSGraphShapedType}
15-
obj = MPSGraphShapedType(tmp)
16-
finalizer(release, obj)
17-
@objc [obj::id{MPSGraphShapedType} initWithShape:shape::id{MPSShape}
18-
dataType:dataType::MPSDataType]::id{MPSGraphShapedType}
19-
return obj
20-
end
12+
# @objcwrapper immutable=true MPSGraphShapedType <: MPSGraphType
13+
14+
# XXX: Not used yet and needs fixing
15+
# function MPSGraphShapedType(shape::MPSShape, dataType)
16+
# tmp = @objc [MPSGraphShapedType alloc]::id{MPSGraphShapedType}
17+
# obj = MPSGraphShapedType(tmp)
18+
# finalizer(release, obj)
19+
# @objc [obj::id{MPSGraphShapedType} initWithShape:shape::id{MPSShape}
20+
# dataType:dataType::MPSDataType]::id{MPSGraphShapedType}
21+
# return obj
22+
# end
2123

2224
## MPSGraphDevice.h
2325
# @objcwrapper MPSGraphDevice <: MPSGraphType

0 commit comments

Comments
 (0)