MOBILE-3657 mod: Remove unused invalidateFiles functions on activities
parent
651cecebd7
commit
d7970bbf5e
|
@ -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<void> {
|
||||
await CoreFilepool.invalidateFilesByComponent(
|
||||
CoreSites.getCurrentSiteId(),
|
||||
AddonModAssignProvider.COMPONENT,
|
||||
moduleId,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Invalidates assignment submissions data WS calls.
|
||||
*
|
||||
|
|
|
@ -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<void> {
|
||||
const siteId = CoreSites.getCurrentSiteId();
|
||||
|
||||
await CoreFilepool.invalidateFilesByComponent(siteId, AddonModForumProvider.COMPONENT, moduleId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Invalidates forum data.
|
||||
*
|
||||
|
|
|
@ -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<void> {
|
||||
await CoreFilepool.invalidateFilesByComponent(
|
||||
CoreSites.getCurrentSiteId(),
|
||||
AddonModQuizProvider.COMPONENT,
|
||||
moduleId,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Invalidates grade from gradebook for a certain user.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue