mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 00:29:09 -05:00
chore(ops): Remove unused arguments from ops (#15315)
This commit is contained in:
parent
2e1d6d3508
commit
b4b4e5980b
3 changed files with 3 additions and 3 deletions
|
@ -315,7 +315,7 @@ fn op_create_hash(s: &mut OpState, args: Value) -> Result<Value, AnyError> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[op]
|
#[op]
|
||||||
fn op_cwd(s: &mut OpState, _args: Value) -> Result<String, AnyError> {
|
fn op_cwd(s: &mut OpState) -> Result<String, AnyError> {
|
||||||
let state = s.borrow_mut::<State>();
|
let state = s.borrow_mut::<State>();
|
||||||
if let Some(config_specifier) = &state.maybe_config_specifier {
|
if let Some(config_specifier) = &state.maybe_config_specifier {
|
||||||
let cwd = config_specifier.join("./")?;
|
let cwd = config_specifier.join("./")?;
|
||||||
|
|
|
@ -28,7 +28,7 @@ pub type StartTime = Instant;
|
||||||
// If the High precision flag is not set, the
|
// If the High precision flag is not set, the
|
||||||
// nanoseconds are rounded on 2ms.
|
// nanoseconds are rounded on 2ms.
|
||||||
#[op]
|
#[op]
|
||||||
pub fn op_now<TP>(state: &mut OpState, _argument: ()) -> f64
|
pub fn op_now<TP>(state: &mut OpState) -> f64
|
||||||
where
|
where
|
||||||
TP: TimersPermission + 'static,
|
TP: TimersPermission + 'static,
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,7 +53,7 @@ pub fn init_for_worker() -> Extension {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[op]
|
#[op]
|
||||||
fn noop_op(_code: i32) -> Result<(), AnyError> {
|
fn noop_op() -> Result<(), AnyError> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue