Skip to content

Commit 1d17da5

Browse files
[DSC-1775] clean up
1 parent 9bac860 commit 1d17da5

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

src/app/core/metadata/metadata.service.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -445,23 +445,6 @@ export class MetadataService {
445445
this.addMetaTag('og:type', type ?? 'website', true);
446446
}
447447

448-
/**
449-
* Add <meta name="og:title" ... > to the <head>
450-
*/
451-
private setOpenGraphTitleTag(title?: string): void {
452-
const value = title ?? this.getMetaTagValue('dc.title');
453-
this.addMetaTag('og:title', value);
454-
}
455-
456-
/**
457-
* Add <meta name="og:description" ... > to the <head>
458-
*/
459-
private setOpenGraphDescriptionTag(description?: string): void {
460-
// TODO: truncate abstract
461-
const value = description ?? this.getMetaTagValue('dc.description.abstract') ?? this.translate.instant('meta.tag.missing.description');
462-
this.addMetaTag('og:description', value);
463-
}
464-
465448
/**
466449
* Add <meta name="og:image" ... > to the <head>
467450
*/
@@ -478,23 +461,6 @@ export class MetadataService {
478461
}
479462

480463

481-
/**
482-
* Add <meta name="twitter:title" ... > to the <head>
483-
*/
484-
private setTwitterTitleTag(title?: string): void {
485-
const value = title ?? this.getMetaTagValue('dc.title');
486-
this.addMetaTag('twitter:title', value);
487-
}
488-
489-
/**
490-
* Add <meta name="twitter:description" ... > to the <head>
491-
*/
492-
private setTwitterDescriptionTag(description?: string): void {
493-
// TODO: truncate abstract
494-
const value = description ?? this.getMetaTagValue('dc.description.abstract') ?? this.translate.instant('meta.tag.missing.description');
495-
this.addMetaTag('twitter:description', value);
496-
}
497-
498464
/**
499465
* Add <meta name="twitter:image" ... > to the <head>
500466
*/
@@ -766,15 +732,11 @@ export class MetadataService {
766732
this.setTitleTags(pageDocumentTitle);
767733
this.setDescriptionTags(this.defaultPageDescription);
768734

769-
this.setOpenGraphTitleTag(pageDocumentTitle);
770-
this.setOpenGraphDescriptionTag(this.defaultPageDescription);
771735
this.setOpenGraphUrlTag(pageUrl);
772736
this.setOpenGraphImageTag();
773737
this.setOpenGraphTypeTag(genericPageOpenGraphType);
774738

775739

776-
this.setTwitterTitleTag(pageDocumentTitle);
777-
this.setTwitterDescriptionTag(this.defaultPageDescription);
778740
this.setTwitterImageTag();
779741
this.setTwitterSummaryCardTag();
780742
}

0 commit comments

Comments
 (0)