Skip to content

Commit

Permalink
Remove unused Brave Ads code
Browse files Browse the repository at this point in the history
  • Loading branch information
tmancey committed Jul 10, 2023
1 parent 6da9087 commit a9151e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,25 +217,6 @@ void AdEvents::LogEvent(const AdEventInfo& ad_event, ResultCallback callback) {
RunTransaction(std::move(transaction), std::move(callback));
}

void AdEvents::GetIf(const std::string& condition,
GetAdEventsCallback callback) const {
mojom::DBTransactionInfoPtr transaction = mojom::DBTransactionInfo::New();
mojom::DBCommandInfoPtr command = mojom::DBCommandInfo::New();
command->type = mojom::DBCommandInfo::Type::READ;
command->sql = base::ReplaceStringPlaceholders(
"SELECT ae.placement_id, ae.type, ae.confirmation_type, ae.campaign_id, "
"ae.creative_set_id, ae.creative_instance_id, ae.advertiser_id, "
"ae.segment, ae.created_at FROM $1 AS ae WHERE $2 ORDER BY created_at "
"DESC;",
{GetTableName(), condition}, nullptr);
BindRecords(&*command);
transaction->commands.push_back(std::move(command));

AdsClientHelper::GetInstance()->RunDBTransaction(
std::move(transaction),
base::BindOnce(&GetCallback, std::move(callback)));
}

void AdEvents::GetAll(GetAdEventsCallback callback) const {
mojom::DBTransactionInfoPtr transaction = mojom::DBTransactionInfo::New();
mojom::DBCommandInfoPtr command = mojom::DBCommandInfo::New();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class AdEvents final : public TableInterface {
public:
void LogEvent(const AdEventInfo& ad_event, ResultCallback callback);

void GetIf(const std::string& condition, GetAdEventsCallback callback) const;

void GetAll(GetAdEventsCallback callback) const;

void GetForType(mojom::AdType ad_type, GetAdEventsCallback callback) const;
Expand Down

0 comments on commit a9151e6

Please sign in to comment.