]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/scl/plant3d/utils/Loader.scl
Safe SCL cast for Java objects
[simantics/3d.git] / org.simantics.plant3d / scl / plant3d / utils / Loader.scl
index a039f7e7b5c3620418e4ab741f800b7199cdccd7..6b2f2d996108a08e53e43b6684d439ede377467e 100644 (file)
@@ -1,13 +1,9 @@
 import "Simantics/DB"
 import "plant3d/scenegraph/P3DRootNode"
 import "./P3DScriptNodeMap"
-import "JavaBuiltin"
 
 importJava "org.simantics.plant3d.scl.SCLUtil" where
   
   loadReadOnly :: Resource -> P3DRootNode
   load :: Resource -> P3DScriptNodeMap
   
-safeCoerce :: a -> Maybe b
-safeCoerce a = do
- (Just $ unsafeCoerce a) `catch` (\(_ :: Exception) -> Nothing)
\ No newline at end of file