Commit a1395134 by Marcin Cieslak

Remove unnecessary empty return;

parent e1191f5f
......@@ -242,8 +242,6 @@ NAN_METHOD(render) {
int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
assert(status == 0);
return;
}
NAN_METHOD(render_sync) {
......@@ -277,8 +275,6 @@ NAN_METHOD(render_file) {
int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
assert(status == 0);
return;
}
NAN_METHOD(render_file_sync) {
......
......@@ -135,8 +135,6 @@ NAN_METHOD(CallbackBridge<T COMMA L>::ReturnCallback) {
if (try_catch.HasCaught()) {
Nan::FatalException(try_catch);
}
return;
}
template <typename T, typename L>
......
......@@ -65,8 +65,6 @@ namespace SassTypes
info.GetReturnValue().Set((get_singleton(info[0]->ToBoolean()->Value()).get_js_object()));
}
return;
}
NAN_METHOD(Boolean::GetValue) {
......
......@@ -87,7 +87,6 @@ namespace SassTypes
}
sass_color_set_r(unwrap(info.This())->value, info[0]->ToNumber()->Value());
return;
}
NAN_METHOD(Color::SetG) {
......@@ -100,7 +99,6 @@ namespace SassTypes
}
sass_color_set_g(unwrap(info.This())->value, info[0]->ToNumber()->Value());
return;
}
NAN_METHOD(Color::SetB) {
......@@ -113,7 +111,6 @@ namespace SassTypes
}
sass_color_set_b(unwrap(info.This())->value, info[0]->ToNumber()->Value());
return;
}
NAN_METHOD(Color::SetA) {
......@@ -126,6 +123,5 @@ namespace SassTypes
}
sass_color_set_a(unwrap(info.This())->value, info[0]->ToNumber()->Value());
return;
}
}
......@@ -72,7 +72,6 @@ namespace SassTypes
Value* sass_value = Factory::unwrap(info[1]);
sass_list_set_value(unwrap(info.This())->value, info[0]->ToInt32()->Value(), sass_value->get_sass_value());
return;
}
NAN_METHOD(List::GetSeparator) {
......@@ -89,7 +88,6 @@ namespace SassTypes
}
sass_list_set_separator(unwrap(info.This())->value, info[0]->ToBoolean()->Value() ? SASS_COMMA : SASS_SPACE);
return;
}
NAN_METHOD(List::GetLength) {
......
......@@ -63,7 +63,6 @@ namespace SassTypes
Value* sass_value = Factory::unwrap(info[1]);
sass_map_set_value(unwrap(info.This())->value, info[0]->ToInt32()->Value(), sass_value->get_sass_value());
return;
}
NAN_METHOD(Map::GetKey) {
......@@ -102,7 +101,6 @@ namespace SassTypes
Value* sass_value = Factory::unwrap(info[1]);
sass_map_set_key(unwrap(info.This())->value, info[0]->ToInt32()->Value(), sass_value->get_sass_value());
return;
}
NAN_METHOD(Map::GetLength) {
......
......@@ -55,7 +55,5 @@ namespace SassTypes
else {
info.GetReturnValue().Set(get_singleton().get_js_object());
}
return;
}
}
......@@ -55,7 +55,6 @@ namespace SassTypes
}
sass_number_set_value(unwrap(info.This())->value, info[0]->ToNumber()->Value());
return;
}
NAN_METHOD(Number::SetUnit) {
......@@ -68,6 +67,5 @@ namespace SassTypes
}
sass_number_set_unit(unwrap(info.This())->value, create_string(info[0]));
return;
}
}
......@@ -39,6 +39,5 @@ namespace SassTypes
}
sass_string_set_value(unwrap(info.This())->value, create_string(info[0]));
return;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment