From e35df1b5ff9a99b6a159dd5a820aef08d4788efe Mon Sep 17 00:00:00 2001 From: Nejc Zdovc Date: Fri, 24 Jul 2020 13:32:04 +0200 Subject: [PATCH] Removes ledger server --- .../ledger/internal/request/request_util.cc | 26 ------------------- .../ledger/internal/request/request_util.h | 5 ++-- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/request/request_util.cc b/vendor/bat-native-ledger/src/bat/ledger/internal/request/request_util.cc index 9353bcb186d5..de6ffd985e6e 100644 --- a/vendor/bat-native-ledger/src/bat/ledger/internal/request/request_util.cc +++ b/vendor/bat-native-ledger/src/bat/ledger/internal/request/request_util.cc @@ -12,11 +12,6 @@ namespace braveledger_request_util { -const char kDevelopment[] = "https://ledger.rewards.brave.software"; -const char kStaging[] = - "https://ledger-staging.mercury.basicattentiontoken.org"; -const char kProduction[] = "https://ledger.mercury.basicattentiontoken.org"; - namespace publisher { const char kDevelopment[] = "https://rewards-dev.brave.software"; const char kStaging[] = "https://rewards-stg.bravesoftware.com"; @@ -64,23 +59,6 @@ std::string BuildPublisherUrl() { return url; } -std::string BuildLedgerUrl() { - std::string url; - switch (ledger::_environment) { - case ledger::Environment::DEVELOPMENT: - url = kDevelopment; - break; - case ledger::Environment::STAGING: - url = kStaging; - break; - case ledger::Environment::PRODUCTION: - url = kProduction; - break; - } - - return url; -} - std::string BuildPromotionUrl() { std::string url; switch (ledger::_environment) { @@ -159,10 +137,6 @@ std::string BuildUrl( url = BuildPublisherUrl(); break; } - case ServerTypes::LEDGER: { - url = BuildLedgerUrl(); - break; - } case ServerTypes::kPromotion: { url = BuildPromotionUrl(); break; diff --git a/vendor/bat-native-ledger/src/bat/ledger/internal/request/request_util.h b/vendor/bat-native-ledger/src/bat/ledger/internal/request/request_util.h index 0f1b9422593a..0f198ce26da4 100644 --- a/vendor/bat-native-ledger/src/bat/ledger/internal/request/request_util.h +++ b/vendor/bat-native-ledger/src/bat/ledger/internal/request/request_util.h @@ -13,7 +13,6 @@ namespace braveledger_request_util { enum class ServerTypes { - LEDGER, // TODO remove me kPublisher, kPromotion, kPayments, @@ -23,8 +22,8 @@ enum class ServerTypes { std::string BuildUrl( const std::string& path, - const std::string& prefix = "", - const ServerTypes& server = ServerTypes::LEDGER); + const std::string& prefix, + const ServerTypes& server); std::map GetSignHeaders( const std::string& url,