diff --git a/src/core/features/course/components/course-format/course-format.ts b/src/core/features/course/components/course-format/course-format.ts index 3d6e4ce36..60514d716 100644 --- a/src/core/features/course/components/course-format/course-format.ts +++ b/src/core/features/course/components/course-format/course-format.ts @@ -81,7 +81,6 @@ export class CoreCourseFormatComponent implements OnInit, OnChanges, OnDestroy { // All the possible component classes. courseFormatComponent?: Type; - courseSummaryComponent?: Type; singleSectionComponent?: Type; allSectionsComponent?: Type; @@ -230,7 +229,6 @@ export class CoreCourseFormatComponent implements OnInit, OnChanges, OnDestroy { await Promise.all([ this.loadCourseFormatComponent(), - this.loadCourseSummaryComponent(), this.loadSingleSectionComponent(), this.loadAllSectionsComponent(), ]); @@ -246,15 +244,6 @@ export class CoreCourseFormatComponent implements OnInit, OnChanges, OnDestroy { this.courseFormatComponent = await CoreCourseFormatDelegate.getCourseFormatComponent(this.course); } - /** - * Load course summary component. - * - * @returns Promise resolved when done. - */ - protected async loadCourseSummaryComponent(): Promise { - this.courseSummaryComponent = await CoreCourseFormatDelegate.getCourseSummaryComponent(this.course); - } - /** * Load single section component. * diff --git a/src/core/features/course/services/format-delegate.ts b/src/core/features/course/services/format-delegate.ts index 59b1f5b4a..5118d550a 100644 --- a/src/core/features/course/services/format-delegate.ts +++ b/src/core/features/course/services/format-delegate.ts @@ -136,15 +136,6 @@ export interface CoreCourseFormatHandler extends CoreDelegateHandler { */ getCourseFormatComponent?(course: CoreCourseAnyCourseData): Promise | undefined>; - /** - * Return the Component to use to display the course summary inside the default course format. - * It's recommended to return the class of the component, but you can also return an instance of the component. - * - * @param course The course to render. - * @returns Promise resolved with component to use, undefined if not found. - */ - getCourseSummaryComponent?(course: CoreCourseAnyCourseData): Promise | undefined>; - /** * Return the Component to use to display a single section. This component will only be used if the user is viewing a * single section. If all the sections are displayed at once then it won't be used. @@ -273,20 +264,6 @@ export class CoreCourseFormatDelegateService extends CoreDelegate | undefined> { - try { - return await this.executeFunctionOnEnabled>(course.format || '', 'getCourseSummaryComponent', [course]); - } catch (error) { - this.logger.error('Error getting course summary component', error); - } - } - /** * Given a course, return the title to use in the course page. * diff --git a/upgrade.txt b/upgrade.txt index 8e951b16e..c58c29806 100644 --- a/upgrade.txt +++ b/upgrade.txt @@ -4,6 +4,7 @@ information provided here is intended especially for developers. === 4.2.0 === - CoreIconComponent has been removed after deprecation period: Use CoreFaIconDirective instead. +- The courseSummaryComponent property has been removed from the CoreCourseFormatComponent component, and the getCourseSummaryComponent method from the CoreCourseFormatHandler interface. === 4.1.0 ===