Skip to content

Commit

Permalink
Remove remaining commented-out bits (CallContext::this, prelude re-ex…
Browse files Browse the repository at this point in the history
…ports)
  • Loading branch information
dherman committed Mar 9, 2019
1 parent d8d5f0b commit 7090370
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions src/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use neon_runtime;
use neon_runtime::raw;
use borrow::{Ref, RefMut, Borrow, BorrowMut};
use borrow::internal::Ledger;
use types::{Value, JsValue, JsObject, JsArray, JsFunction, JsBoolean, JsNumber, JsString, StringResult, JsNull, JsUndefined};
use types::{Managed, Value, JsValue, JsObject, JsArray, JsFunction, JsBoolean, JsNumber, JsString, StringResult, JsNull, JsUndefined};
use types::binary::{JsArrayBuffer, JsBuffer};
use types::error::JsError;
use object::{Object, This};
Expand Down Expand Up @@ -456,12 +456,10 @@ impl<'a, T: This> CallContext<'a, T> {
a.downcast_or_throw(self)
}

/*
/// Produces a handle to the `this`-binding.
pub fn this(&mut self) -> Handle<'a, T> {
Handle::new_internal(T::as_this(self.info.this(self)))
/// Produces a handle to the called function's `this`-binding.
pub fn this(&mut self) -> &'a T {
T::as_this(self.info.this(self).to_raw())
}
*/
}

impl<'a, T: This> ContextInternal<'a> for CallContext<'a, T> {
Expand Down
4 changes: 2 additions & 2 deletions src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! A convenience module that re-exports the most commonly-used Neon APIs.
pub use types::{JsBuffer, JsArrayBuffer, BinaryData, JsError, JsUndefined, JsNull, JsBoolean, JsString, JsNumber, /*JsObject,*/ /*JsArray,*/ JsFunction, Value};
pub use types::{JsBuffer, JsArrayBuffer, BinaryData, JsError, JsUndefined, JsNull, JsBoolean, JsString, JsNumber, JsObject, JsArray, JsFunction, Value};
pub use object::{Object, Class};
pub use borrow::{Borrow, BorrowMut};
pub use context::{CallKind, Context, ModuleContext, /*ExecuteContext, ComputeContext,*/ CallContext, FunctionContext, MethodContext, TaskContext};
pub use context::{CallKind, Context, ModuleContext, ExecuteContext, ComputeContext, CallContext, FunctionContext, MethodContext, TaskContext};
pub use result::NeonResult;
pub use task::Task;

0 comments on commit 7090370

Please sign in to comment.