Skip to content

Commit 4543c9b

Browse files
committed
Code tidy up
1 parent a266949 commit 4543c9b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/appmetrics.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,19 +299,13 @@ NAN_METHOD(setOption) {
299299
}
300300
}
301301

302-
// set the property to given value (called from index.js)
302+
// get property
303303
NAN_METHOD(getOption) {
304304
if (info.Length() > 0) {
305-
//Nan::NanScope();
306305
Local<String> value = info[0]->ToString();
307-
printf(toStdString(value).c_str());
308306
std::string property = loaderApi->getProperty(toStdString(value).c_str());
309-
printf("*** HEADLESS OUTPUT PROPERTY =");
310-
printf(property.c_str());
311-
printf(" ***\n");
312307
v8::Local<v8::String> v8str = v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), property.c_str());
313308
info.GetReturnValue().Set<v8::String>(v8str);
314-
//Nan::NanReturnValue(NanNew<String>(loaderApi->getProperty(toStdString(value).c_str())));
315309
} else {
316310
loaderApi->logMessage(warning, "Incorrect number of parameters passed to getOption");
317311
}

0 commit comments

Comments
 (0)