summaryrefslogtreecommitdiffstats
path: root/node_modules/node-sass/src/create_string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/node-sass/src/create_string.cpp')
-rw-r--r--node_modules/node-sass/src/create_string.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/node_modules/node-sass/src/create_string.cpp b/node_modules/node-sass/src/create_string.cpp
deleted file mode 100644
index 27a496f..0000000
--- a/node_modules/node-sass/src/create_string.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <nan.h>
-#include <stdlib.h>
-#include <string.h>
-#include "create_string.h"
-
-char* create_string(Nan::MaybeLocal<v8::Value> maybevalue) {
- v8::Local<v8::Value> value;
-
- if (maybevalue.ToLocal(&value)) {
- if (value->IsNull() || !value->IsString()) {
- return 0;
- }
- } else {
- return 0;
- }
-
- Nan::Utf8String string(value);
- char *str = (char *)malloc(string.length() + 1);
- strcpy(str, *string);
- return str;
-}