Skip to content

Commit 43a23fd

Browse files
committed
chore: clear dead comments
1 parent 14fce9c commit 43a23fd

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

node-bindings/src/lib.rs

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ enum DevnetCommand {
2121
impl Finalize for StacksDevnet {}
2222

2323
impl StacksDevnet {
24-
// Creates a new instance of `Database`
25-
//
26-
// 1. Creates a connection and a channel
27-
// 2. Spawns a thread and moves the channel receiver and connection to it
28-
// 3. On a separate thread, read closures off the channel and execute with access
29-
// to the connection.
24+
3025
fn new<'a, C>(cx: &mut C) -> Result<Self, String>
3126
where
3227
C: Context<'a>,
@@ -180,30 +175,6 @@ impl StacksDevnet {
180175
}
181176
}
182177

183-
// db.send(move |conn, channel| {
184-
// let result = conn
185-
// .execute(
186-
// "INSERT INTO person (name) VALUES (?)",
187-
// rusqlite::params![name],
188-
// )
189-
// .map(|_| conn.last_insert_rowid());
190-
191-
// channel.send(move |mut cx| {
192-
// let callback = callback.into_inner(&mut cx);
193-
// let this = cx.undefined();
194-
// let args: Vec<Handle<JsValue>> = match result {
195-
// Ok(id) => vec![cx.null().upcast(), cx.number(id as f64).upcast()],
196-
// Err(err) => vec![cx.error(err.to_string())?.upcast()],
197-
// };
198-
199-
// callback.call(&mut cx, this, args)?;
200-
201-
// Ok(())
202-
// });
203-
// })
204-
// .or_else(|err| cx.throw_error(err.to_string()))?;
205-
206-
// This function does not have a return value
207178
Ok(cx.undefined())
208179
}
209180
}

0 commit comments

Comments
 (0)