Skip to content

Commit

Permalink
Delete article-aside-adverts as it's no longer used (#1733)
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-imber authored Jan 10, 2025
1 parent a88e57f commit 627e730
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 267 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-parrots-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@guardian/commercial': minor
---

Delete article-aside-adverts as it's no longer used
2 changes: 0 additions & 2 deletions src/init/consented/dynamic-ad-slots.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { init as initArticleAsideAdverts } from '../../insert/article-aside-adverts';
import { initCommentsExpandedAdverts } from '../../insert/comments-expanded-advert';
import { init as initFootballRightAds } from '../../insert/fixures';
import { init as initHighMerch } from '../../insert/high-merch';
Expand All @@ -13,7 +12,6 @@ type Modules = Array<[`${string}-${string}`, () => Promise<unknown>]>;
const dynamicAdSlotModules: Modules = [
['cm-mobileSticky', initMobileSticky],
['cm-highMerch', initHighMerch],
['cm-articleAsideAdverts', initArticleAsideAdverts],
['cm-articleBodyAdverts', initArticleBodyAdverts],
['cm-liveblogAdverts', initLiveblogAdverts],
['cm-commentsExpandedAdverts', initCommentsExpandedAdverts],
Expand Down
1 change: 0 additions & 1 deletion src/init/consented/static-ad-slots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const decideAdditionalSizes = (adSlot: HTMLElement): SizeMapping => {
* Static ad slots that were rendered on the page by the server are collected here.
*
* For dynamic ad slots that are created at runtime, see:
* - article-aside-adverts
* - article-body-adverts
* - high-merch
*/
Expand Down
155 changes: 0 additions & 155 deletions src/insert/article-aside-adverts.spec.ts

This file was deleted.

109 changes: 0 additions & 109 deletions src/insert/article-aside-adverts.ts

This file was deleted.

2 changes: 2 additions & 0 deletions src/insert/high-merch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import fastdom from '../lib/fastdom-promise';
* Initialise merchandising-high ad slot on Frontend rendered content
*
* On DCR, these ad slots are server side rendered
*
* Revisit whether this code is needed once galleries have been migrated to DCR
*/
export const init = (): Promise<void> => {
if (commercialFeatures.highMerch) {
Expand Down

0 comments on commit 627e730

Please # to comment.