Skip to content

Commit

Permalink
Deleted deprecated updateCorrelator
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomarchioro committed Nov 6, 2019
1 parent d3d08ac commit 6cc3592
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
15 changes: 0 additions & 15 deletions src/Bling.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,15 +370,6 @@ class Bling extends Component {
static clear(slots) {
Bling._adManager.clear(slots);
}
/**
* Updates the correlator value for the next ad request.
*
* @method updateCorrelator
* @static
*/
static updateCorrelator() {
Bling._adManager.updateCorrelator();
}

static set testManager(testManager) {
invariant(testManager, "Pass in createManagerTest to mock GPT");
Expand Down Expand Up @@ -724,12 +715,6 @@ class Bling extends Component {
if (content) {
Bling._adManager.googletag.content().setContent(adSlot, content);
} else {
if (
!Bling._adManager._disableInitialLoad &&
!Bling._adManager._syncCorrelator
) {
Bling._adManager.updateCorrelator();
}
Bling._adManager.googletag.display(divId);
if (
Bling._adManager._disableInitialLoad &&
Expand Down
12 changes: 0 additions & 12 deletions src/createManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,6 @@ export class AdManager extends EventEmitter {
// first instance updates correlator value and re-render each ad
const instances = this.getMountedInstances();
instances.forEach((instance, i) => {
if (i === 0) {
this.updateCorrelator();
}
instance.forceUpdate();
});

Expand All @@ -451,15 +448,6 @@ export class AdManager extends EventEmitter {
return this.googletag.pubads().getVersion();
}

updateCorrelator() {
if (!this.pubadsReady) {
return false;
}
this.googletag.pubads().updateCorrelator();

return true;
}

load(url) {
return (
this._loadPromise ||
Expand Down
1 change: 0 additions & 1 deletion src/utils/apiList.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export const pubadsAPI = [
["getVideoContent", "function"],
["getCorrelator", "function"],
["setCorrelator", "function"],
["updateCorrelator", "function"],
["isAdRequestFinished", "function"],
["collapseEmptyDivs", "function"],
["clear", "function"],
Expand Down

0 comments on commit 6cc3592

Please sign in to comment.