Skip to content

Commit

Permalink
revert scrambling functionality, new tnoodle
Browse files Browse the repository at this point in the history
  • Loading branch information
pdtxie committed Mar 26, 2024
1 parent 4dbe64c commit 9e702ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"originHash" : "bd0066f47568b67feb1deaee757eb87a190ba2aad49ef359417423e2412468a4",
"pins" : [
{
"identity" : "lzstring-swift",
Expand Down Expand Up @@ -37,5 +38,5 @@
}
}
],
"version" : 2
"version" : 3
}
9 changes: 0 additions & 9 deletions CubeTime/StopwatchManager/ScrambleController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -68,17 +63,13 @@ class ScrambleController: ObservableObject {

graal_create_isolate(nil, &isolate, &thread)

/*
var svg: String!

scramble.withCString { s in
svg = String(cString: tnoodle_lib_draw_scramble(thread!, scrTypeAtWorkStart, UnsafeMutablePointer(mutating: s)))
}

graal_tear_down_isolate(thread);
*/

let svg = ""


DispatchQueue.main.async {
Expand Down
3 changes: 0 additions & 3 deletions CubeTime/Timer/ScrambleView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ struct AsyncSVGView: View {

graal_create_isolate(nil, &isolate, &thread)

var svg = ""
/*
var svg: String!

#warning("todo: infinite loading if :boom:")
Expand All @@ -42,7 +40,6 @@ struct AsyncSVGView: View {
}

graal_tear_down_isolate(thread);
*/

return svg
}
Expand Down

0 comments on commit 9e702ad

Please sign in to comment.