Skip to content

Commit

Permalink
Merge pull request #198 from brave-intl/publisher-list
Browse files Browse the repository at this point in the history
Removes unused method
  • Loading branch information
ryanml authored and NejcZdovc committed Dec 6, 2018
1 parent d0a3c7b commit f22b33e
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 20 deletions.
3 changes: 0 additions & 3 deletions include/bat/ledger/ledger.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ class LEDGER_EXPORT Ledger {
virtual void GetPublisherInfoList(uint32_t start, uint32_t limit,
const ledger::PublisherInfoFilter& filter,
PublisherInfoListCallback callback) = 0;
virtual void GetCurrentPublisherInfoList(uint32_t start, uint32_t limit,
const ledger::PublisherInfoFilter& filter,
ledger::PublisherInfoListCallback callback) = 0;

virtual void SetRewardsMainEnabled(bool enabled) = 0;
virtual void SetPublisherMinVisitTime(uint64_t duration_in_seconds) = 0;
Expand Down
3 changes: 0 additions & 3 deletions include/bat/ledger/ledger_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ class LEDGER_EXPORT LedgerClient {
virtual void LoadPublisherInfoList(uint32_t start, uint32_t limit,
PublisherInfoFilter filter,
PublisherInfoListCallback callback) = 0;
virtual void LoadCurrentPublisherInfoList(uint32_t start, uint32_t limit,
PublisherInfoFilter filter,
PublisherInfoListCallback callback) = 0;

// TODO this can be removed
virtual void FetchGrant(const std::string& lang, const std::string& paymentId) = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/bat_contribution.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void BatContribution::StartAutoContribute() {
ledger::PUBLISHER_EXCLUDE_FILTER::FILTER_ALL_EXCEPT_EXCLUDED,
true,
current_reconcile_stamp);
ledger_->GetCurrentPublisherInfoList(
ledger_->GetPublisherInfoList(
0,
0,
filter,
Expand Down
4 changes: 0 additions & 4 deletions src/bat_publishers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -567,10 +567,6 @@ void BatPublishers::synopsisNormalizer(const ledger::PublisherInfo& info) {
nullptr, true, _1, _2));
}





bool BatPublishers::isVerified(const std::string& publisher_id) {
if (server_list_.empty()) {
return false;
Expand Down
6 changes: 0 additions & 6 deletions src/ledger_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,6 @@ void LedgerImpl::GetPublisherInfoList(uint32_t start, uint32_t limit,
ledger_client_->LoadPublisherInfoList(start, limit, filter, callback);
}

void LedgerImpl::GetCurrentPublisherInfoList(uint32_t start, uint32_t limit,
const ledger::PublisherInfoFilter& filter,
ledger::PublisherInfoListCallback callback) {
ledger_client_->LoadCurrentPublisherInfoList(start, limit, filter, callback);
}

void LedgerImpl::SetRewardsMainEnabled(bool enabled) {
bat_state_->SetRewardsMainEnabled(enabled);
}
Expand Down
3 changes: 0 additions & 3 deletions src/ledger_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ class LedgerImpl : public ledger::Ledger,
void GetPublisherInfoList(uint32_t start, uint32_t limit,
const ledger::PublisherInfoFilter& filter,
ledger::PublisherInfoListCallback callback) override;
void GetCurrentPublisherInfoList(uint32_t start, uint32_t limit,
const ledger::PublisherInfoFilter& filter,
ledger::PublisherInfoListCallback callback) override;

void DoDirectDonation(const ledger::PublisherInfo& publisher, const int amount, const std::string& currency) override;

Expand Down

0 comments on commit f22b33e

Please sign in to comment.