mirror of
https://github.com/electron/electron.git
synced 2026-02-15 17:45:33 -05:00
Remove unused constructor of Dictionary.
This commit is contained in:
@@ -6,9 +6,8 @@
|
||||
|
||||
namespace mate {
|
||||
|
||||
Dictionary::Dictionary(v8::Isolate* isolate)
|
||||
: isolate_(isolate),
|
||||
object_(MATE_OBJECT_NEW(isolate)) {
|
||||
Dictionary::Dictionary()
|
||||
: isolate_(NULL) {
|
||||
}
|
||||
|
||||
Dictionary::Dictionary(v8::Isolate* isolate,
|
||||
@@ -20,12 +19,6 @@ Dictionary::Dictionary(v8::Isolate* isolate,
|
||||
Dictionary::~Dictionary() {
|
||||
}
|
||||
|
||||
Dictionary Dictionary::CreateEmpty(v8::Isolate* isolate) {
|
||||
Dictionary dictionary(isolate);
|
||||
dictionary.object_ = MATE_OBJECT_NEW(isolate);
|
||||
return dictionary;
|
||||
}
|
||||
|
||||
v8::Handle<v8::Value> Converter<Dictionary>::ToV8(v8::Isolate* isolate,
|
||||
Dictionary val) {
|
||||
return val.object_;
|
||||
|
||||
@@ -24,12 +24,10 @@ namespace mate {
|
||||
//
|
||||
class Dictionary {
|
||||
public:
|
||||
Dictionary(v8::Isolate* isolate = v8::Isolate::GetCurrent());
|
||||
Dictionary();
|
||||
Dictionary(v8::Isolate* isolate, v8::Handle<v8::Object> object);
|
||||
~Dictionary();
|
||||
|
||||
static Dictionary CreateEmpty(v8::Isolate* isolate);
|
||||
|
||||
template<typename T>
|
||||
bool Get(const base::StringPiece& key, T* out) const {
|
||||
v8::Handle<v8::Value> val = object_->Get(StringToV8(isolate_, key));
|
||||
|
||||
Reference in New Issue
Block a user