diff --git a/src/addons/mod/assign/services/assign.ts b/src/addons/mod/assign/services/assign.ts index dec89da07..5ec111717 100644 --- a/src/addons/mod/assign/services/assign.ts +++ b/src/addons/mod/assign/services/assign.ts @@ -21,7 +21,6 @@ import { makeSingleton } from '@singletons'; import { CoreCourseCommonModWSOptions } from '@features/course/services/course'; import { CoreTextUtils } from '@services/utils/text'; import { CoreGrades } from '@features/grades/services/grades'; -import { CoreFilepool } from '@services/filepool'; import { CoreTimeUtils } from '@services/utils/time'; import { CoreCourseLogHelper } from '@features/course/services/log-helper'; import { CoreError } from '@classes/errors/error'; @@ -759,7 +758,6 @@ export class AddonModAssignProvider { /** * Invalidate the prefetched content except files. - * To invalidate files, use AddonModAssignProvider.invalidateFiles. * * @param moduleId The module ID. * @param courseId Course ID. @@ -783,20 +781,6 @@ export class AddonModAssignProvider { await Promise.all(promises); } - /** - * Invalidate the prefetched files. - * - * @param moduleId The module ID. - * @return Promise resolved when the files are invalidated. - */ - async invalidateFiles(moduleId: number): Promise { - await CoreFilepool.invalidateFilesByComponent( - CoreSites.getCurrentSiteId(), - AddonModAssignProvider.COMPONENT, - moduleId, - ); - } - /** * Invalidates assignment submissions data WS calls. * diff --git a/src/addons/mod/forum/services/forum.ts b/src/addons/mod/forum/services/forum.ts index ea4a088a3..582c13e65 100644 --- a/src/addons/mod/forum/services/forum.ts +++ b/src/addons/mod/forum/services/forum.ts @@ -21,7 +21,6 @@ import { CoreTagItem } from '@features/tag/services/tag'; import { CoreUser } from '@features/user/services/user'; import { CoreApp } from '@services/app'; import { CoreFileEntry } from '@services/file-helper'; -import { CoreFilepool } from '@services/filepool'; import { CoreGroups } from '@services/groups'; import { CoreSitesCommonWSOptions, CoreSites, CoreSitesReadingStrategy } from '@services/sites'; import { CoreUrlUtils } from '@services/utils/url'; @@ -870,7 +869,6 @@ export class AddonModForumProvider { /** * Invalidate the prefetched content except files. - * To invalidate files, use AddonModForum#invalidateFiles. * * @param moduleId The module ID. * @param courseId Course ID. @@ -963,18 +961,6 @@ export class AddonModForumProvider { ); } - /** - * Invalidate the prefetched files. - * - * @param moduleId The module ID. - * @return Promise resolved when the files are invalidated. - */ - async invalidateFiles(moduleId: number): Promise { - const siteId = CoreSites.getCurrentSiteId(); - - await CoreFilepool.invalidateFilesByComponent(siteId, AddonModForumProvider.COMPONENT, moduleId); - } - /** * Invalidates forum data. * diff --git a/src/addons/mod/quiz/services/quiz.ts b/src/addons/mod/quiz/services/quiz.ts index c732bc937..16e39cf9a 100644 --- a/src/addons/mod/quiz/services/quiz.ts +++ b/src/addons/mod/quiz/services/quiz.ts @@ -28,7 +28,6 @@ import { CoreQuestionsAnswers, } from '@features/question/services/question'; import { CoreQuestionDelegate } from '@features/question/services/question-delegate'; -import { CoreFilepool } from '@services/filepool'; import { CoreSites, CoreSitesCommonWSOptions, CoreSitesReadingStrategy } from '@services/sites'; import { CoreDomUtils } from '@services/utils/dom'; import { CoreTextUtils } from '@services/utils/text'; @@ -1255,7 +1254,6 @@ export class AddonModQuizProvider { /** * Invalidate the prefetched content except files. - * To invalidate files, use AddonModQuizProvider.invalidateFiles. * * @param moduleId The module ID. * @param courseId Course ID. @@ -1306,20 +1304,6 @@ export class AddonModQuizProvider { await site.invalidateWsCacheForKey(this.getFeedbackForGradeCacheKey(quizId, grade)); } - /** - * Invalidate the prefetched files. - * - * @param moduleId The module ID. - * @return Promise resolved when the files are invalidated. - */ - async invalidateFiles(moduleId: number): Promise { - await CoreFilepool.invalidateFilesByComponent( - CoreSites.getCurrentSiteId(), - AddonModQuizProvider.COMPONENT, - moduleId, - ); - } - /** * Invalidates grade from gradebook for a certain user. *