Skip to content

Commit

Permalink
Stripped old artifacts from previous merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasc committed Apr 24, 2018
1 parent 8d04229 commit d7f4444
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cc/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,4 @@ static FF_FUNC_TYPE ff_func = FF_FUNC_TYPE();
Nan::ObjectWrap::Unwrap<clazz>(info.This())->prop = target; \
}

namespace FF {
template<typename toType, typename type>
static inline v8::Local<v8::Array> stdVecToJSArray(std::vector<type> vec) {
v8::Local<v8::Array> jsArray = Nan::New<v8::Array>(vec.size());
for (int i = 0; i < jsArray->Length(); i++) {
jsArray->Set(i, Nan::New((toType)vec.at(i)));
}
return jsArray;
}
}

#endif

0 comments on commit d7f4444

Please sign in to comment.