Remove unused args param
This commit is contained in:
parent
11a4c7e408
commit
f119bc0944
2 changed files with 3 additions and 6 deletions
|
@ -37,8 +37,7 @@ bool Clipboard::Has(const std::string& format_string, mate::Arguments* args) {
|
|||
return clipboard->IsFormatAvailable(format, GetClipboardType(args));
|
||||
}
|
||||
|
||||
std::string Clipboard::Read(const std::string& format_string,
|
||||
mate::Arguments* args) {
|
||||
std::string Clipboard::Read(const std::string& format_string) {
|
||||
ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
|
||||
ui::Clipboard::FormatType format(ui::Clipboard::GetFormatType(format_string));
|
||||
|
||||
|
@ -49,7 +48,7 @@ std::string Clipboard::Read(const std::string& format_string,
|
|||
|
||||
v8::Local<v8::Value> Clipboard::ReadBuffer(const std::string& format_string,
|
||||
mate::Arguments* args) {
|
||||
std::string data = Read(format_string, args);
|
||||
std::string data = Read(format_string);
|
||||
return node::Buffer::Copy(
|
||||
args->isolate(), data.data(), data.length()).ToLocalChecked();
|
||||
}
|
||||
|
|
|
@ -24,8 +24,7 @@ class Clipboard {
|
|||
static bool Has(const std::string& format_string, mate::Arguments* args);
|
||||
static void Clear(mate::Arguments* args);
|
||||
|
||||
static std::string Read(const std::string& format_string,
|
||||
mate::Arguments* args);
|
||||
static std::string Read(const std::string& format_string);
|
||||
static void Write(const mate::Dictionary& data, mate::Arguments* args);
|
||||
|
||||
static base::string16 ReadText(mate::Arguments* args);
|
||||
|
@ -51,7 +50,6 @@ class Clipboard {
|
|||
static v8::Local<v8::Value> ReadBuffer(const std::string& format_string,
|
||||
mate::Arguments* args);
|
||||
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(Clipboard);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue