Skip to content

Commit

Permalink
Removes ledger server
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Jul 24, 2020
1 parent 4c0ed64 commit e35df1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -159,10 +137,6 @@ std::string BuildUrl(
url = BuildPublisherUrl();
break;
}
case ServerTypes::LEDGER: {
url = BuildLedgerUrl();
break;
}
case ServerTypes::kPromotion: {
url = BuildPromotionUrl();
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace braveledger_request_util {

enum class ServerTypes {
LEDGER, // TODO remove me
kPublisher,
kPromotion,
kPayments,
Expand All @@ -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<std::string, std::string> GetSignHeaders(
const std::string& url,
Expand Down

0 comments on commit e35df1b

Please sign in to comment.