From 9e702ad8809917dc8e79f011c06864170222423d Mon Sep 17 00:00:00 2001 From: Tim Xie Date: Tue, 26 Mar 2024 02:07:31 -0700 Subject: [PATCH] revert scrambling functionality, new tnoodle --- .../xcshareddata/swiftpm/Package.resolved | 3 ++- CubeTime/StopwatchManager/ScrambleController.swift | 9 --------- CubeTime/Timer/ScrambleView.swift | 3 --- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/CubeTime.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/CubeTime.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index d60f04b..50de86a 100644 --- a/CubeTime.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/CubeTime.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -1,4 +1,5 @@ { + "originHash" : "bd0066f47568b67feb1deaee757eb87a190ba2aad49ef359417423e2412468a4", "pins" : [ { "identity" : "lzstring-swift", @@ -37,5 +38,5 @@ } } ], - "version" : 2 + "version" : 3 } diff --git a/CubeTime/StopwatchManager/ScrambleController.swift b/CubeTime/StopwatchManager/ScrambleController.swift index dce8f29..b82e77e 100644 --- a/CubeTime/StopwatchManager/ScrambleController.swift +++ b/CubeTime/StopwatchManager/ScrambleController.swift @@ -29,16 +29,11 @@ class ScrambleController: ObservableObject { var isolate: OpaquePointer? = nil var thread: OpaquePointer? = nil - /* let ret = graal_create_isolate(nil, &isolate, &thread) - print(ret) let s = String(cString: tnoodle_lib_scramble(thread!, scrambleType)) graal_tear_down_isolate(thread); - */ - - let s = "" return s } @@ -68,7 +63,6 @@ class ScrambleController: ObservableObject { graal_create_isolate(nil, &isolate, &thread) - /* var svg: String! scramble.withCString { s in @@ -76,9 +70,6 @@ class ScrambleController: ObservableObject { } graal_tear_down_isolate(thread); - */ - - let svg = "" DispatchQueue.main.async { diff --git a/CubeTime/Timer/ScrambleView.swift b/CubeTime/Timer/ScrambleView.swift index 1b48331..36d8878 100644 --- a/CubeTime/Timer/ScrambleView.swift +++ b/CubeTime/Timer/ScrambleView.swift @@ -28,8 +28,6 @@ struct AsyncSVGView: View { graal_create_isolate(nil, &isolate, &thread) - var svg = "" - /* var svg: String! #warning("todo: infinite loading if :boom:") @@ -42,7 +40,6 @@ struct AsyncSVGView: View { } graal_tear_down_isolate(thread); - */ return svg }