mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
refactor: in auto_updater::AutoUpdater, move empty function decls to header
This commit is contained in:
@@ -22,12 +22,6 @@ std::string AutoUpdater::GetFeedURL() {
|
||||
return "";
|
||||
}
|
||||
|
||||
void AutoUpdater::SetFeedURL(gin::Arguments* args) {}
|
||||
|
||||
void AutoUpdater::CheckForUpdates() {}
|
||||
|
||||
void AutoUpdater::QuitAndInstall() {}
|
||||
|
||||
bool AutoUpdater::IsVersionAllowedForUpdate(const std::string& current_version,
|
||||
const std::string& target_version) {
|
||||
return false;
|
||||
|
||||
@@ -64,9 +64,9 @@ class AutoUpdater {
|
||||
// FIXME(zcbenz): We should not do V8 in this file, this method should only
|
||||
// accept C++ struct as parameter, and atom_api_auto_updater.cc is responsible
|
||||
// for parsing the parameter from JavaScript.
|
||||
static void SetFeedURL(gin::Arguments* args);
|
||||
static void CheckForUpdates();
|
||||
static void QuitAndInstall();
|
||||
static void SetFeedURL(gin::Arguments* args) {}
|
||||
static void CheckForUpdates() {}
|
||||
static void QuitAndInstall() {}
|
||||
|
||||
static bool IsVersionAllowedForUpdate(const std::string& current_version,
|
||||
const std::string& target_version);
|
||||
|
||||
Reference in New Issue
Block a user