[Pkg-javascript-commits] [node-leveldown] 127/492: remove old, unused util functions
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:13:51 UTC 2014
This is an automated email from the git hooks/post-receive script.
andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.
commit 4d6c79ca1c3cef3a35f8d71ea05ffed78037de0f
Author: Rod Vagg <rod at vagg.org>
Date: Tue Dec 18 08:08:57 2012 +1100
remove old, unused util functions
---
src/levelup.cc | 8 --------
src/levelup.h | 3 ---
2 files changed, 11 deletions(-)
diff --git a/src/levelup.cc b/src/levelup.cc
index a6f2899..603d0b1 100644
--- a/src/levelup.cc
+++ b/src/levelup.cc
@@ -22,14 +22,6 @@ NODE_MODULE(levelup, Init)
// util
-// Extracts a C string from a V8 Utf8Value.
-const char* ToCString(const v8::String::Utf8Value& value) {
- return *value ? *value : "<string conversion failed>";
-}
-const char* ToCString(const v8::String::AsciiValue& value) {
- return *value ? *value : "<string conversion failed>";
-}
-
void RunCallback (Persistent<Function> callback, Local<Value> argv[], int length) {
TryCatch try_catch;
diff --git a/src/levelup.h b/src/levelup.h
index f61becb..4706e53 100644
--- a/src/levelup.h
+++ b/src/levelup.h
@@ -40,9 +40,6 @@
#define BOOLEAN_OPTION_VALUE_DEFTRUE(optionsObj, opt) \
bool opt = !optionsObj->Has(option_ ## opt) || optionsObj->Get(option_ ## opt)->BooleanValue();
-const char* ToCString(const v8::String::Utf8Value& value);
-const char* ToCString(const v8::String::AsciiValue& value);
-
void RunCallback (v8::Persistent<v8::Function> callback, v8::Local<v8::Value> argv[], int length);
#endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git
More information about the Pkg-javascript-commits
mailing list