mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 04:51:22 +00:00
chore(ops): Remove unused arguments from ops (#15315)
This commit is contained in:
parent
2e1d6d3508
commit
b4b4e5980b
@ -315,7 +315,7 @@ fn op_create_hash(s: &mut OpState, args: Value) -> Result<Value, AnyError> {
|
||||
}
|
||||
|
||||
#[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>();
|
||||
if let Some(config_specifier) = &state.maybe_config_specifier {
|
||||
let cwd = config_specifier.join("./")?;
|
||||
|
@ -28,7 +28,7 @@ pub type StartTime = Instant;
|
||||
// If the High precision flag is not set, the
|
||||
// nanoseconds are rounded on 2ms.
|
||||
#[op]
|
||||
pub fn op_now<TP>(state: &mut OpState, _argument: ()) -> f64
|
||||
pub fn op_now<TP>(state: &mut OpState) -> f64
|
||||
where
|
||||
TP: TimersPermission + 'static,
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ pub fn init_for_worker() -> Extension {
|
||||
}
|
||||
|
||||
#[op]
|
||||
fn noop_op(_code: i32) -> Result<(), AnyError> {
|
||||
fn noop_op() -> Result<(), AnyError> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user