From f52e8d24425faafa1d716feaa66013d5cdea9a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 9 Mar 2021 15:49:40 +0100 Subject: [PATCH] MOBILE-3627 lint: Fix multiple line in the whole code --- src/addons/badges/services/handlers/badge-link.ts | 1 - .../recentlyaccesseditems/recentlyaccesseditems.ts | 1 - .../recentlyaccesseditems/services/recentlyaccesseditems.ts | 1 - .../block/sitemainmenu/components/components.module.ts | 1 - src/addons/calendar/components/calendar/calendar.ts | 1 - src/addons/calendar/components/filter/filter.ts | 2 -- src/addons/calendar/pages/edit-event/edit-event.page.ts | 2 -- src/addons/calendar/pages/index/index.page.ts | 1 - src/addons/calendar/pages/list/list.module.ts | 1 - src/addons/calendar/pages/settings/settings.module.ts | 1 - src/addons/calendar/services/calendar-helper.ts | 1 - src/addons/calendar/services/calendar.ts | 6 ------ src/addons/messages/components/components.module.ts | 1 - src/addons/messages/pages/contacts-35/contacts.page.ts | 1 - src/addons/messages/pages/contacts/contacts.module.ts | 1 - src/addons/messages/pages/contacts/contacts.page.ts | 1 - src/addons/messages/pages/discussion/discussion.page.ts | 3 --- .../messages/pages/discussions-35/discussions.page.ts | 1 - src/addons/messages/services/handlers/index-link.ts | 1 - src/addons/messages/services/messages-offline.ts | 2 -- src/addons/messages/services/messages.ts | 4 ---- .../components/edit-feedback-modal/edit-feedback-modal.ts | 1 - src/addons/mod/assign/components/index/index.ts | 1 - src/addons/mod/assign/components/submission/submission.ts | 1 - .../assign/pages/submission-list/submission-list.page.ts | 1 - .../mod/assign/pages/submission-review/submission-review.ts | 1 - src/addons/mod/assign/services/assign-helper.ts | 2 -- src/addons/mod/assign/services/assign-offline.ts | 1 - src/addons/mod/assign/services/assign-sync.ts | 2 -- src/addons/mod/assign/services/assign.ts | 4 ---- src/addons/mod/assign/services/feedback-delegate.ts | 1 - .../mod/assign/submission/comments/services/handler.ts | 1 - .../assign/submission/onlinetext/component/onlinetext.ts | 2 -- src/addons/mod/book/components/index/index.ts | 1 - src/addons/mod/book/services/book.ts | 1 - src/addons/mod/folder/services/folder.ts | 1 - src/addons/mod/forum/services/forum.ts | 2 -- src/addons/mod/imscp/components/index/index.ts | 1 - src/addons/mod/imscp/services/imscp.ts | 2 -- src/addons/mod/label/services/label.ts | 1 - .../mod/lesson/components/password-modal/password-modal.ts | 1 - src/addons/mod/page/services/page.ts | 1 - src/addons/mod/quiz/accessrules/password/password.module.ts | 1 - src/addons/mod/resource/services/handlers/module.ts | 1 - src/addons/mod/url/services/url.ts | 1 - .../deferredfeedback/services/handlers/deferredfeedback.ts | 1 - src/addons/qtype/ddmarker/classes/ddmarker.ts | 1 - src/addons/qtype/numerical/numerical.module.ts | 1 - src/core/components/attachments/attachments.ts | 1 - src/core/components/context-menu/context-menu.ts | 1 - src/core/features/comments/pages/viewer/viewer.page.ts | 1 - src/core/features/comments/services/comments-sync.ts | 1 - src/core/features/comments/services/comments.ts | 1 - .../contentlinks/pages/choose-site/choose-site.module.ts | 1 - src/core/features/course/classes/main-activity-page.ts | 1 - src/core/features/course/services/course.ts | 2 -- .../features/course/services/module-prefetch-delegate.ts | 1 - src/core/features/course/services/sync.ts | 1 - .../pages/available-courses/available-courses.module.ts | 1 - .../features/courses/pages/categories/categories.module.ts | 1 - src/core/features/courses/pages/dashboard/dashboard.ts | 2 -- src/core/features/courses/services/dashboard.ts | 1 - .../courses/services/handlers/request-push-click.ts | 1 - .../emulator/components/capture-media/capture-media.ts | 1 - src/core/features/emulator/services/emulator-helper.ts | 1 - .../services/database/pushnotifications.ts | 1 - src/core/features/question/components/question/question.ts | 1 - src/core/features/question/services/question.ts | 1 - src/core/features/rating/services/database/rating.ts | 1 - src/core/features/rating/services/rating-sync.ts | 1 - src/core/features/rating/services/rating.ts | 2 -- src/core/features/search/components/components.module.ts | 1 - .../features/search/components/search-box/search-box.ts | 1 - src/core/features/settings/pages/general/general.ts | 1 - .../pages/synchronization/synchronization.module.ts | 1 - src/core/features/settings/services/settings-helper.ts | 1 - .../components/question-behaviour/question-behaviour.ts | 1 - .../components/user-profile-field/user-profile-field.ts | 1 - .../siteplugins/pages/course-option/course-option.ts | 1 - .../features/siteplugins/pages/module-index/module-index.ts | 1 - src/core/features/siteplugins/services/siteplugins.ts | 2 -- .../features/user/classes/base-profilefield-component.ts | 1 - src/core/features/user/services/user.ts | 1 - src/core/services/cron.ts | 1 - src/core/services/groups.ts | 1 - src/core/services/utils/dom.ts | 1 - src/core/services/utils/utils.ts | 1 - src/core/services/ws.ts | 1 - 88 files changed, 113 deletions(-) diff --git a/src/addons/badges/services/handlers/badge-link.ts b/src/addons/badges/services/handlers/badge-link.ts index 4b7b4eb1d..25b14f5d9 100644 --- a/src/addons/badges/services/handlers/badge-link.ts +++ b/src/addons/badges/services/handlers/badge-link.ts @@ -20,7 +20,6 @@ import { CoreNavigator } from '@services/navigator'; import { makeSingleton } from '@singletons'; import { AddonBadges } from '../badges'; - /** * Handler to treat links to user participants page. */ diff --git a/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.ts b/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.ts index 848dc6692..1712ece96 100644 --- a/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.ts +++ b/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/recentlyaccesseditems.ts @@ -41,7 +41,6 @@ export class AddonBlockRecentlyAccessedItemsComponent extends CoreBlockBaseCompo super('AddonBlockRecentlyAccessedItemsComponent'); } - /** * Perform the invalidate content function. * diff --git a/src/addons/block/recentlyaccesseditems/services/recentlyaccesseditems.ts b/src/addons/block/recentlyaccesseditems/services/recentlyaccesseditems.ts index af2ca87d5..f2b50bc92 100644 --- a/src/addons/block/recentlyaccesseditems/services/recentlyaccesseditems.ts +++ b/src/addons/block/recentlyaccesseditems/services/recentlyaccesseditems.ts @@ -77,7 +77,6 @@ export class AddonBlockRecentlyAccessedItemsProvider { } export const AddonBlockRecentlyAccessedItems = makeSingleton(AddonBlockRecentlyAccessedItemsProvider); - /** * Result of WS block_recentlyaccesseditems_get_recent_items. */ diff --git a/src/addons/block/sitemainmenu/components/components.module.ts b/src/addons/block/sitemainmenu/components/components.module.ts index 213738cec..b3aa083be 100644 --- a/src/addons/block/sitemainmenu/components/components.module.ts +++ b/src/addons/block/sitemainmenu/components/components.module.ts @@ -19,7 +19,6 @@ import { CoreCourseComponentsModule } from '@features/course/components/componen import { AddonBlockSiteMainMenuComponent } from './sitemainmenu/sitemainmenu'; - @NgModule({ declarations: [ AddonBlockSiteMainMenuComponent, diff --git a/src/addons/calendar/components/calendar/calendar.ts b/src/addons/calendar/components/calendar/calendar.ts index e4c68c18d..09391982a 100644 --- a/src/addons/calendar/components/calendar/calendar.ts +++ b/src/addons/calendar/components/calendar/calendar.ts @@ -139,7 +139,6 @@ export class AddonCalendarCalendarComponent implements OnInit, DoCheck, OnDestro this.fetchData(); } - /** * Detect and act upon changes that Angular can’t or won’t detect on its own (objects and arrays). */ diff --git a/src/addons/calendar/components/filter/filter.ts b/src/addons/calendar/components/filter/filter.ts index 601b53b62..63a29d00e 100644 --- a/src/addons/calendar/components/filter/filter.ts +++ b/src/addons/calendar/components/filter/filter.ts @@ -29,7 +29,6 @@ import { AddonCalendarFilter, AddonCalendarEventIcons } from '../../services/cal }) export class AddonCalendarFilterPopoverComponent implements OnInit { - @Input() filter: AddonCalendarFilter = { filtered: false, courseId: -1, @@ -54,7 +53,6 @@ export class AddonCalendarFilterPopoverComponent implements OnInit { this.types.push(value); }); - } /** diff --git a/src/addons/calendar/pages/edit-event/edit-event.page.ts b/src/addons/calendar/pages/edit-event/edit-event.page.ts index d86fabc51..38d9c3207 100644 --- a/src/addons/calendar/pages/edit-event/edit-event.page.ts +++ b/src/addons/calendar/pages/edit-event/edit-event.page.ts @@ -266,7 +266,6 @@ export class AddonCalendarEditEventPage implements OnInit, OnDestroy, CanLeave { // Ignore errors. }); - if (this.showAll) { // Remove site home from the list of courses. const siteHomeId = CoreSites.getCurrentSiteHomeId(); @@ -285,7 +284,6 @@ export class AddonCalendarEditEventPage implements OnInit, OnDestroy, CanLeave { await Promise.all((courses as CoreEnrolledCourseData[]).map(courseFillterFullname)); } - // Sort courses by name. this.courses = courses.sort((a, b) => { const compareA = a.fullname.toLowerCase(); diff --git a/src/addons/calendar/pages/index/index.page.ts b/src/addons/calendar/pages/index/index.page.ts index 7588b2b45..c7095bbc9 100644 --- a/src/addons/calendar/pages/index/index.page.ts +++ b/src/addons/calendar/pages/index/index.page.ts @@ -34,7 +34,6 @@ import { CoreNavigator } from '@services/navigator'; import { CoreLocalNotifications } from '@services/local-notifications'; import { CoreConstants } from '@/core/constants'; - /** * Page that displays the calendar events. */ diff --git a/src/addons/calendar/pages/list/list.module.ts b/src/addons/calendar/pages/list/list.module.ts index cae527712..751dfd235 100644 --- a/src/addons/calendar/pages/list/list.module.ts +++ b/src/addons/calendar/pages/list/list.module.ts @@ -47,7 +47,6 @@ const routes: Routes = [ ...conditionalRoutes(tabletRoutes, () => CoreScreen.isTablet), ]; - @NgModule({ imports: [ RouterModule.forChild(routes), diff --git a/src/addons/calendar/pages/settings/settings.module.ts b/src/addons/calendar/pages/settings/settings.module.ts index cafb774d0..25fe2f46c 100644 --- a/src/addons/calendar/pages/settings/settings.module.ts +++ b/src/addons/calendar/pages/settings/settings.module.ts @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; diff --git a/src/addons/calendar/services/calendar-helper.ts b/src/addons/calendar/services/calendar-helper.ts index 8012c5bc2..7ebe73090 100644 --- a/src/addons/calendar/services/calendar-helper.ts +++ b/src/addons/calendar/services/calendar-helper.ts @@ -55,7 +55,6 @@ export class AddonCalendarHelperProvider { protected eventTypeIcons: string[] = []; - /** * Returns event icon based on event type. * diff --git a/src/addons/calendar/services/calendar.ts b/src/addons/calendar/services/calendar.ts index 405eab8b5..e1f4cead8 100644 --- a/src/addons/calendar/services/calendar.ts +++ b/src/addons/calendar/services/calendar.ts @@ -722,7 +722,6 @@ export class AddonCalendarProvider { const originalEvent = record as AddonCalendarGetEventsEvent; const recordAsRecord = record as AddonCalendarEventDBRecord; - // Calculate data to match the new WS. eventConverted.descriptionformat = originalEvent.format; eventConverted.iscourseevent = originalEvent.eventtype == AddonCalendarEventType.COURSE; @@ -947,7 +946,6 @@ export class AddonCalendarProvider { params.events!.courseids = courses.map((course) => course.id); params.events!.courseids.push(site.getSiteHomeId()); // Add front page. - return; })); @@ -1941,7 +1939,6 @@ export type AddonCalendarCalendarDay = { rarrow: string; // Rarrow. }; - /** * Params of core_calendar_get_calendar_monthly_view WS. */ @@ -2035,7 +2032,6 @@ export type AddonCalendarDayName = { fullname: string; // Fullname. }; - /** * Params of core_calendar_get_calendar_upcoming_view WS. */ @@ -2090,7 +2086,6 @@ export type AddonCalendarGetAllowedEventTypesWSResponse = { warnings?: CoreWSExternalWarning[]; }; - /** * Params of core_calendar_get_calendar_events WS. */ @@ -2187,7 +2182,6 @@ type AddonCalendarGetCalendarDayViewWSParams = { categoryid?: number; // Category being viewed. }; - /** * Params of core_calendar_submit_create_update_form WS. */ diff --git a/src/addons/messages/components/components.module.ts b/src/addons/messages/components/components.module.ts index dbb803c95..d4c3fdd3d 100644 --- a/src/addons/messages/components/components.module.ts +++ b/src/addons/messages/components/components.module.ts @@ -18,7 +18,6 @@ import { CoreSharedModule } from '@/core/shared.module'; import { AddonMessagesConversationInfoComponent } from './conversation-info/conversation-info'; - @NgModule({ declarations: [ AddonMessagesConversationInfoComponent, diff --git a/src/addons/messages/pages/contacts-35/contacts.page.ts b/src/addons/messages/pages/contacts-35/contacts.page.ts index d3ebda14b..51da338ad 100644 --- a/src/addons/messages/pages/contacts-35/contacts.page.ts +++ b/src/addons/messages/pages/contacts-35/contacts.page.ts @@ -62,7 +62,6 @@ export class AddonMessagesContacts35Page implements OnInit, OnDestroy { searchString = ''; - constructor( protected route: ActivatedRoute, ) { diff --git a/src/addons/messages/pages/contacts/contacts.module.ts b/src/addons/messages/pages/contacts/contacts.module.ts index 8fd496161..c2688cdf9 100644 --- a/src/addons/messages/pages/contacts/contacts.module.ts +++ b/src/addons/messages/pages/contacts/contacts.module.ts @@ -45,7 +45,6 @@ const routes: Routes = [ ...conditionalRoutes(tabletRoutes, () => CoreScreen.isTablet), ]; - @NgModule({ imports: [ RouterModule.forChild(routes), diff --git a/src/addons/messages/pages/contacts/contacts.page.ts b/src/addons/messages/pages/contacts/contacts.page.ts index c69f7a00b..5aee7da4e 100644 --- a/src/addons/messages/pages/contacts/contacts.page.ts +++ b/src/addons/messages/pages/contacts/contacts.page.ts @@ -58,7 +58,6 @@ export class AddonMessagesContactsPage implements OnInit, OnDestroy { protected contactRequestsCountObserver: CoreEventObserver; protected memberInfoObserver: CoreEventObserver; - constructor() { this.siteId = CoreSites.getCurrentSiteId(); diff --git a/src/addons/messages/pages/discussion/discussion.page.ts b/src/addons/messages/pages/discussion/discussion.page.ts index aa5f0487d..0cc44be66 100644 --- a/src/addons/messages/pages/discussion/discussion.page.ts +++ b/src/addons/messages/pages/discussion/discussion.page.ts @@ -326,7 +326,6 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView return; })); - } // Fetch the messages for the first time. @@ -596,7 +595,6 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView } } - // Retrieve the conversation. Invalidate data first to get the right unreadcount. await AddonMessages.invalidateConversation(conversationId!); @@ -1191,7 +1189,6 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView data = await AddonMessages.sendMessage(this.userId!, text); } - this.messagesBeingSent--; let failure = false; if (data.sent) { diff --git a/src/addons/messages/pages/discussions-35/discussions.page.ts b/src/addons/messages/pages/discussions-35/discussions.page.ts index b3e0f7310..e1f7e9f5c 100644 --- a/src/addons/messages/pages/discussions-35/discussions.page.ts +++ b/src/addons/messages/pages/discussions-35/discussions.page.ts @@ -124,7 +124,6 @@ export class AddonMessagesDiscussions35Page implements OnInit, OnDestroy { this.refreshData(); }); - // If a message push notification is received, refresh the view. this.pushObserver = CorePushNotificationsDelegate.on('receive') .subscribe((notification) => { diff --git a/src/addons/messages/services/handlers/index-link.ts b/src/addons/messages/services/handlers/index-link.ts index 7f0c6f352..f1336d7e8 100644 --- a/src/addons/messages/services/handlers/index-link.ts +++ b/src/addons/messages/services/handlers/index-link.ts @@ -29,7 +29,6 @@ export class AddonMessagesIndexLinkHandlerService extends CoreContentLinksHandle name = 'AddonMessagesIndexLinkHandler'; pattern = /\/message\/index\.php((?![?&](id|user1|user2)=\d+).)*$/; - /** * Get the list of actions for a link (url). * diff --git a/src/addons/messages/services/messages-offline.ts b/src/addons/messages/services/messages-offline.ts index 271c46c5f..949e4f87e 100644 --- a/src/addons/messages/services/messages-offline.ts +++ b/src/addons/messages/services/messages-offline.ts @@ -106,7 +106,6 @@ export class AddonMessagesOfflineProvider { ), ]); - const messageResult: AddonMessagesOfflineAnyMessagesFormatted[] = this.parseMessages(messages); @@ -379,6 +378,5 @@ export type AddonMessagesOfflineConversationMessagesDBRecordFormatted = useridfrom?: number; // User Id who send the message, will be likely us. }; - export type AddonMessagesOfflineAnyMessagesFormatted = AddonMessagesOfflineConversationMessagesDBRecordFormatted | AddonMessagesOfflineMessagesDBRecordFormatted; diff --git a/src/addons/messages/services/messages.ts b/src/addons/messages/services/messages.ts index 403dc3ecf..ab326200b 100644 --- a/src/addons/messages/services/messages.ts +++ b/src/addons/messages/services/messages.ts @@ -1413,7 +1413,6 @@ export class AddonMessagesProvider { return AddonMessagesMainMenuHandlerService.PAGE_NAME + ( enabled ? '/group-conversations' : ''); } - /** * Get messages according to the params. * @@ -1749,7 +1748,6 @@ export class AddonMessagesProvider { const site = await CoreSites.getSite(siteId); userId = userId || site.getUserId(); - await site.invalidateWsCacheForKey(this.getCacheKeyForConversationBetweenUsers(userId, otherUserId)); } @@ -3065,7 +3063,6 @@ export type AddonMessagesConversationMessageFormatted = showTail?: boolean; // Calculated in the app. Whether to show a "tail" in the message. }; - /** * Data returned by core_message_get_user_message_preferences WS. */ @@ -3559,7 +3556,6 @@ export type AddonMessagesGetUserContactsWSResponse = { }[]; }[]; - /** * Params of core_message_get_contact_requests WS. */ diff --git a/src/addons/mod/assign/components/edit-feedback-modal/edit-feedback-modal.ts b/src/addons/mod/assign/components/edit-feedback-modal/edit-feedback-modal.ts index a5c57e35d..ffcee4261 100644 --- a/src/addons/mod/assign/components/edit-feedback-modal/edit-feedback-modal.ts +++ b/src/addons/mod/assign/components/edit-feedback-modal/edit-feedback-modal.ts @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - import { Component, Input, ViewChild, ElementRef } from '@angular/core'; import { CoreSites } from '@services/sites'; import { CoreDomUtils } from '@services/utils/dom'; diff --git a/src/addons/mod/assign/components/index/index.ts b/src/addons/mod/assign/components/index/index.ts index e9fbcf9b5..6b1849cd8 100644 --- a/src/addons/mod/assign/components/index/index.ts +++ b/src/addons/mod/assign/components/index/index.ts @@ -275,7 +275,6 @@ export class AddonModAssignIndexComponent extends CoreCourseModuleMainActivityCo cmId: this.module!.id, }); - this.summary = submissionStatus.gradingsummary; if (!this.summary) { this.needsGradingAvalaible = false; diff --git a/src/addons/mod/assign/components/submission/submission.ts b/src/addons/mod/assign/components/submission/submission.ts index bd98df951..a70ec103d 100644 --- a/src/addons/mod/assign/components/submission/submission.ts +++ b/src/addons/mod/assign/components/submission/submission.ts @@ -1190,7 +1190,6 @@ type AddonModAssignSubmissionFeedbackFormatted = AddonModAssignSubmissionFeedbac advancedgrade?: boolean; // Calculated in the app. Whether it uses advanced grading. }; - type AddonModAssignSubmissionGrade = { method: string; grade?: number | string; diff --git a/src/addons/mod/assign/pages/submission-list/submission-list.page.ts b/src/addons/mod/assign/pages/submission-list/submission-list.page.ts index ab886aec2..db08d6509 100644 --- a/src/addons/mod/assign/pages/submission-list/submission-list.page.ts +++ b/src/addons/mod/assign/pages/submission-list/submission-list.page.ts @@ -346,7 +346,6 @@ export class AddonModAssignSubmissionListPage implements AfterViewInit, OnDestro } - /** * Helper class to manage submissions. */ diff --git a/src/addons/mod/assign/pages/submission-review/submission-review.ts b/src/addons/mod/assign/pages/submission-review/submission-review.ts index c1feef2cd..eae18746b 100644 --- a/src/addons/mod/assign/pages/submission-review/submission-review.ts +++ b/src/addons/mod/assign/pages/submission-review/submission-review.ts @@ -46,7 +46,6 @@ export class AddonModAssignSubmissionReviewPage implements OnInit, CanLeave { protected blindMarking = false; // Whether it uses blind marking. protected forceLeave = false; // To allow leaving the page without checking for changes. - constructor( protected route: ActivatedRoute, ) { } diff --git a/src/addons/mod/assign/services/assign-helper.ts b/src/addons/mod/assign/services/assign-helper.ts index 5367e59c0..c71681b36 100644 --- a/src/addons/mod/assign/services/assign-helper.ts +++ b/src/addons/mod/assign/services/assign-helper.ts @@ -212,7 +212,6 @@ export class AddonModAssignHelperProvider { return false; } - // If all the plugins were empty (or there were no plugins), we consider the submission to be empty. return true; } @@ -709,7 +708,6 @@ export class AddonModAssignHelperProvider { } export const AddonModAssignHelper = makeSingleton(AddonModAssignHelperProvider); - /** * Assign submission with some calculated data. */ diff --git a/src/addons/mod/assign/services/assign-offline.ts b/src/addons/mod/assign/services/assign-offline.ts index 3c339dd63..a2024439b 100644 --- a/src/addons/mod/assign/services/assign-offline.ts +++ b/src/addons/mod/assign/services/assign-offline.ts @@ -290,7 +290,6 @@ export class AddonModAssignOfflineProvider { const promises: Promise[] = []; - promises.push(this.getAssignSubmissions(assignId, siteId)); promises.push(this.getAssignSubmissionsGrade(assignId, siteId)); diff --git a/src/addons/mod/assign/services/assign-sync.ts b/src/addons/mod/assign/services/assign-sync.ts index 6cc49c328..df803848c 100644 --- a/src/addons/mod/assign/services/assign-sync.ts +++ b/src/addons/mod/assign/services/assign-sync.ts @@ -178,7 +178,6 @@ export class AddonModAssignSyncProvider extends CoreCourseActivitySyncBaseProvid throw new CoreSyncBlockedError(Translate.instant('core.errorsyncblocked', { $a: this.componentTranslate })); } - this.logger.debug('Try to sync assign ' + assignId + ' in site ' + siteId); const syncPromise = this.performSyncAssign(assignId, siteId); @@ -553,7 +552,6 @@ export type AddonModAssignSyncResult = { gradesBlocked: number[]; // Whether some grade couldn't be synced because it was blocked. UserId fields of the blocked grade. }; - /** * Data passed to AUTO_SYNCED event. */ diff --git a/src/addons/mod/assign/services/assign.ts b/src/addons/mod/assign/services/assign.ts index 82590a2f9..b9e800d3e 100644 --- a/src/addons/mod/assign/services/assign.ts +++ b/src/addons/mod/assign/services/assign.ts @@ -761,7 +761,6 @@ export class AddonModAssignProvider { promises.push(this.invalidateAssignmentData(courseId, siteId)); promises.push(CoreGrades.invalidateAllCourseGradesData(courseId)); - await Promise.all(promises); } @@ -1562,7 +1561,6 @@ export type AddonModAssignSubmissionFeedback = { plugins?: AddonModAssignPlugin[]; // Plugins info. }; - /** * Params of mod_assign_list_participants WS. */ @@ -1692,7 +1690,6 @@ type AddonModAssignGetSubmissionStatusWSParams = { groupid?: number; // Filter by users in group (used for generating the grading summary). Empty or 0 for all groups information. }; - /** * Result of WS mod_assign_get_submission_status. */ @@ -1812,7 +1809,6 @@ type AddonModAssignSubmitGradingFormWSParams = { jsonformdata: string; // The data from the grading form, encoded as a json array. }; - /** * Params of mod_assign_save_grade WS. */ diff --git a/src/addons/mod/assign/services/feedback-delegate.ts b/src/addons/mod/assign/services/feedback-delegate.ts index 03e462fb0..604b7298a 100644 --- a/src/addons/mod/assign/services/feedback-delegate.ts +++ b/src/addons/mod/assign/services/feedback-delegate.ts @@ -49,7 +49,6 @@ export interface AddonModAssignFeedbackHandler extends CoreDelegateHandler { */ getComponent?(plugin: AddonModAssignPlugin): Type | undefined | Promise | undefined>; - /** * Return the draft saved data of the feedback plugin. * diff --git a/src/addons/mod/assign/submission/comments/services/handler.ts b/src/addons/mod/assign/submission/comments/services/handler.ts index 25f409c03..54ea486f3 100644 --- a/src/addons/mod/assign/submission/comments/services/handler.ts +++ b/src/addons/mod/assign/submission/comments/services/handler.ts @@ -29,7 +29,6 @@ export class AddonModAssignSubmissionCommentsHandlerService implements AddonModA name = 'AddonModAssignSubmissionCommentsHandler'; type = 'comments'; - /** * Whether the plugin can be edited in offline for existing submissions. In general, this should return false if the * plugin uses Moodle filters. The reason is that the app only prefetches filtered data, and the user should edit diff --git a/src/addons/mod/assign/submission/onlinetext/component/onlinetext.ts b/src/addons/mod/assign/submission/onlinetext/component/onlinetext.ts index ac1b381ec..6e5d6c56a 100644 --- a/src/addons/mod/assign/submission/onlinetext/component/onlinetext.ts +++ b/src/addons/mod/assign/submission/onlinetext/component/onlinetext.ts @@ -22,7 +22,6 @@ import { CoreTextUtils } from '@services/utils/text'; import { CoreUtils } from '@services/utils/utils'; import { AddonModAssignSubmissionOnlineTextPluginData } from '../services/handler'; - /** * Component to render an onlinetext submission plugin. */ @@ -74,7 +73,6 @@ export class AddonModAssignSubmissionOnlineTextComponent extends AddonModAssignS this.text = AddonModAssign.getSubmissionPluginText(this.plugin); } - // Set the text. if (!this.edit) { // Not editing, see full text when clicked. diff --git a/src/addons/mod/book/components/index/index.ts b/src/addons/mod/book/components/index/index.ts index e64c21196..19d1f0b2e 100644 --- a/src/addons/mod/book/components/index/index.ts +++ b/src/addons/mod/book/components/index/index.ts @@ -100,7 +100,6 @@ export class AddonModBookIndexComponent extends CoreCourseModuleMainResourceComp // @todo leaveAnimation: 'core-modal-lateral-transition', }); - await modal.present(); const result = await modal.onDidDismiss(); diff --git a/src/addons/mod/book/services/book.ts b/src/addons/mod/book/services/book.ts index 7999730e4..d87e9e34e 100644 --- a/src/addons/mod/book/services/book.ts +++ b/src/addons/mod/book/services/book.ts @@ -48,7 +48,6 @@ export const enum AddonModBookNavStyle { const ROOT_CACHE_KEY = 'mmaModBook:'; - /** * Service that provides some features for books. */ diff --git a/src/addons/mod/folder/services/folder.ts b/src/addons/mod/folder/services/folder.ts index ea3ca2c07..d2a861557 100644 --- a/src/addons/mod/folder/services/folder.ts +++ b/src/addons/mod/folder/services/folder.ts @@ -160,7 +160,6 @@ export class AddonModFolderProvider { } export const AddonModFolder = makeSingleton(AddonModFolderProvider); - /** * Folder returned by mod_folder_get_folders_by_courses. */ diff --git a/src/addons/mod/forum/services/forum.ts b/src/addons/mod/forum/services/forum.ts index 9e46db2e9..60c8fcdc5 100644 --- a/src/addons/mod/forum/services/forum.ts +++ b/src/addons/mod/forum/services/forum.ts @@ -1928,7 +1928,6 @@ export type AddonModForumDeletePostWSParams = { */ export type AddonModForumDeletePostWSResponse = CoreStatusWithWarningsWSResponse; - /** * Params of mod_forum_get_discussion_post WS. */ @@ -1944,7 +1943,6 @@ export type AddonModForumGetDiscussionPostWSResponse = { warnings?: CoreWSExternalWarning[]; }; - /** * Params of mod_forum_get_discussion_posts WS. */ diff --git a/src/addons/mod/imscp/components/index/index.ts b/src/addons/mod/imscp/components/index/index.ts index 1b3e4d6ae..5f08a8735 100644 --- a/src/addons/mod/imscp/components/index/index.ts +++ b/src/addons/mod/imscp/components/index/index.ts @@ -46,7 +46,6 @@ export class AddonModImscpIndexComponent extends CoreCourseModuleMainResourceCom previousItem = ''; nextItem = ''; - constructor(@Optional() courseContentsPage?: CoreCourseContentsPage) { super('AddonModImscpIndexComponent', courseContentsPage); } diff --git a/src/addons/mod/imscp/services/imscp.ts b/src/addons/mod/imscp/services/imscp.ts index 8788d3472..fbb34a76c 100644 --- a/src/addons/mod/imscp/services/imscp.ts +++ b/src/addons/mod/imscp/services/imscp.ts @@ -343,7 +343,6 @@ export class AddonModImscpProvider { } export const AddonModImscp = makeSingleton(AddonModImscpProvider); - /** * Params of mod_imscp_view_imscp WS. */ @@ -387,7 +386,6 @@ type AddonModImscpGetImscpsByCoursesWSResponse = { warnings?: CoreWSExternalWarning[]; }; - export type AddonModImscpTocItem = { href: string; title: string; diff --git a/src/addons/mod/label/services/label.ts b/src/addons/mod/label/services/label.ts index 387e1ea1e..ca5488a23 100644 --- a/src/addons/mod/label/services/label.ts +++ b/src/addons/mod/label/services/label.ts @@ -165,7 +165,6 @@ export class AddonModLabelProvider { } export const AddonModLabel = makeSingleton(AddonModLabelProvider); - /** * Label returned by mod_label_get_labels_by_courses. */ diff --git a/src/addons/mod/lesson/components/password-modal/password-modal.ts b/src/addons/mod/lesson/components/password-modal/password-modal.ts index 9e77b63ec..871316793 100644 --- a/src/addons/mod/lesson/components/password-modal/password-modal.ts +++ b/src/addons/mod/lesson/components/password-modal/password-modal.ts @@ -19,7 +19,6 @@ import { CoreSites } from '@services/sites'; import { CoreDomUtils } from '@services/utils/dom'; import { ModalController } from '@singletons'; - /** * Modal that asks the password for a lesson. */ diff --git a/src/addons/mod/page/services/page.ts b/src/addons/mod/page/services/page.ts index 5029d42e7..a18111297 100644 --- a/src/addons/mod/page/services/page.ts +++ b/src/addons/mod/page/services/page.ts @@ -175,7 +175,6 @@ export class AddonModPageProvider { export const AddonModPage = makeSingleton(AddonModPageProvider); - /** * Page returned by mod_page_get_pages_by_courses. */ diff --git a/src/addons/mod/quiz/accessrules/password/password.module.ts b/src/addons/mod/quiz/accessrules/password/password.module.ts index 9e1cefb3e..aa86a43a4 100644 --- a/src/addons/mod/quiz/accessrules/password/password.module.ts +++ b/src/addons/mod/quiz/accessrules/password/password.module.ts @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - import { CoreSharedModule } from '@/core/shared.module'; import { APP_INITIALIZER, NgModule } from '@angular/core'; diff --git a/src/addons/mod/resource/services/handlers/module.ts b/src/addons/mod/resource/services/handlers/module.ts index cf47524d7..7e05beb73 100644 --- a/src/addons/mod/resource/services/handlers/module.ts +++ b/src/addons/mod/resource/services/handlers/module.ts @@ -251,7 +251,6 @@ export class AddonModResourceModuleHandlerService implements CoreCourseModuleHan } export const AddonModResourceModuleHandler = makeSingleton(AddonModResourceModuleHandlerService); - type AddonResourceHandlerData = { icon: string; extra: string; diff --git a/src/addons/mod/url/services/url.ts b/src/addons/mod/url/services/url.ts index 7890d9966..45b260224 100644 --- a/src/addons/mod/url/services/url.ts +++ b/src/addons/mod/url/services/url.ts @@ -258,7 +258,6 @@ type AddonModUrlViewUrlWSParams = { urlid: number; // Url instance id. }; - /** * URL returnd by mod_url_get_urls_by_courses. */ diff --git a/src/addons/qbehaviour/deferredfeedback/services/handlers/deferredfeedback.ts b/src/addons/qbehaviour/deferredfeedback/services/handlers/deferredfeedback.ts index 3d92e0396..4aa1d011c 100644 --- a/src/addons/qbehaviour/deferredfeedback/services/handlers/deferredfeedback.ts +++ b/src/addons/qbehaviour/deferredfeedback/services/handlers/deferredfeedback.ts @@ -176,7 +176,6 @@ export class AddonQbehaviourDeferredFeedbackHandlerService implements CoreQuesti export const AddonQbehaviourDeferredFeedbackHandler = makeSingleton(AddonQbehaviourDeferredFeedbackHandlerService); - /** * Check if a response is complete. * diff --git a/src/addons/qtype/ddmarker/classes/ddmarker.ts b/src/addons/qtype/ddmarker/classes/ddmarker.ts index 12036b060..29c79b94f 100644 --- a/src/addons/qtype/ddmarker/classes/ddmarker.ts +++ b/src/addons/qtype/ddmarker/classes/ddmarker.ts @@ -871,7 +871,6 @@ export class AddonQtypeDdMarkerQuestion { } - /** * Encapsulates operations on dd area. */ diff --git a/src/addons/qtype/numerical/numerical.module.ts b/src/addons/qtype/numerical/numerical.module.ts index a07fd0df6..b2956adb4 100644 --- a/src/addons/qtype/numerical/numerical.module.ts +++ b/src/addons/qtype/numerical/numerical.module.ts @@ -17,7 +17,6 @@ import { APP_INITIALIZER, NgModule } from '@angular/core'; import { CoreQuestionDelegate } from '@features/question/services/question-delegate'; import { AddonQtypeNumericalHandler } from './services/handlers/numerical'; - @NgModule({ declarations: [ ], diff --git a/src/core/components/attachments/attachments.ts b/src/core/components/attachments/attachments.ts index 41d62f071..341da812e 100644 --- a/src/core/components/attachments/attachments.ts +++ b/src/core/components/attachments/attachments.ts @@ -128,7 +128,6 @@ export class CoreAttachmentsComponent implements OnInit { */ async delete(index: number, askConfirm?: boolean): Promise { - if (askConfirm) { try { await CoreDomUtils.showDeleteConfirm('core.confirmdeletefile'); diff --git a/src/core/components/context-menu/context-menu.ts b/src/core/components/context-menu/context-menu.ts index 734b11b0e..6b33dd627 100644 --- a/src/core/components/context-menu/context-menu.ts +++ b/src/core/components/context-menu/context-menu.ts @@ -44,7 +44,6 @@ export class CoreContextMenuComponent implements OnInit, OnDestroy { protected instanceId: string; protected parentContextMenu?: CoreContextMenuComponent; - constructor( elementRef: ElementRef, ) { diff --git a/src/core/features/comments/pages/viewer/viewer.page.ts b/src/core/features/comments/pages/viewer/viewer.page.ts index b6e50625b..5a4a2ae24 100644 --- a/src/core/features/comments/pages/viewer/viewer.page.ts +++ b/src/core/features/comments/pages/viewer/viewer.page.ts @@ -518,7 +518,6 @@ export type CoreCommentsDataWithUser = CoreCommentsData & { deleted?: boolean; }; - export type CoreCommentsOfflineWithUser = CoreCommentsDBRecord & { profileimageurl?: string; fullname?: string; diff --git a/src/core/features/comments/services/comments-sync.ts b/src/core/features/comments/services/comments-sync.ts index 5d256f95a..68e6754ff 100644 --- a/src/core/features/comments/services/comments-sync.ts +++ b/src/core/features/comments/services/comments-sync.ts @@ -322,7 +322,6 @@ export type CoreCommentsSyncResult = { updated: boolean; // Whether some data was sent to the server or offline data was updated. }; - /** * Data passed to AUTO_SYNCED event. */ diff --git a/src/core/features/comments/services/comments.ts b/src/core/features/comments/services/comments.ts index c08a4f454..3792c1274 100644 --- a/src/core/features/comments/services/comments.ts +++ b/src/core/features/comments/services/comments.ts @@ -530,7 +530,6 @@ export type CoreCommentsArea = { canpostorhascomments: boolean; // Canpostorhascomments. }; - /** * Params of core_comment_add_comments WS. */ diff --git a/src/core/features/contentlinks/pages/choose-site/choose-site.module.ts b/src/core/features/contentlinks/pages/choose-site/choose-site.module.ts index 2587d8af5..51b3e16a5 100644 --- a/src/core/features/contentlinks/pages/choose-site/choose-site.module.ts +++ b/src/core/features/contentlinks/pages/choose-site/choose-site.module.ts @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; diff --git a/src/core/features/course/classes/main-activity-page.ts b/src/core/features/course/classes/main-activity-page.ts index 544b8b461..8d1ce25c9 100644 --- a/src/core/features/course/classes/main-activity-page.ts +++ b/src/core/features/course/classes/main-activity-page.ts @@ -32,7 +32,6 @@ export class CoreCourseModuleMainActivityPage( 'core_completion_get_activities_completion_status', params, @@ -551,7 +550,6 @@ export class CoreCourseProvider { return grade; } - } /** diff --git a/src/core/features/course/services/module-prefetch-delegate.ts b/src/core/features/course/services/module-prefetch-delegate.ts index d26129f06..a223ebac9 100644 --- a/src/core/features/course/services/module-prefetch-delegate.ts +++ b/src/core/features/course/services/module-prefetch-delegate.ts @@ -508,7 +508,6 @@ export class CoreCourseModulePrefetchDelegateService extends CoreDelegate [], ); - if (!completions || !completions.length) { // Nothing to sync, set sync time. await this.setSyncTime(courseId, siteId); diff --git a/src/core/features/courses/pages/available-courses/available-courses.module.ts b/src/core/features/courses/pages/available-courses/available-courses.module.ts index 333ded1d1..c272cfa72 100644 --- a/src/core/features/courses/pages/available-courses/available-courses.module.ts +++ b/src/core/features/courses/pages/available-courses/available-courses.module.ts @@ -20,7 +20,6 @@ import { CoreCoursesComponentsModule } from '../../components/components.module' import { CoreCoursesAvailableCoursesPage } from './available-courses'; - const routes: Routes = [ { path: '', diff --git a/src/core/features/courses/pages/categories/categories.module.ts b/src/core/features/courses/pages/categories/categories.module.ts index c5f016916..b49b429b1 100644 --- a/src/core/features/courses/pages/categories/categories.module.ts +++ b/src/core/features/courses/pages/categories/categories.module.ts @@ -20,7 +20,6 @@ import { CoreCoursesComponentsModule } from '../../components/components.module' import { CoreCoursesCategoriesPage } from './categories'; - const routes: Routes = [ { path: '', diff --git a/src/core/features/courses/pages/dashboard/dashboard.ts b/src/core/features/courses/pages/dashboard/dashboard.ts index c8f13330d..0cd29483c 100644 --- a/src/core/features/courses/pages/dashboard/dashboard.ts +++ b/src/core/features/courses/pages/dashboard/dashboard.ts @@ -138,7 +138,6 @@ export class CoreCoursesDashboardPage implements OnInit, OnDestroy { }); } - /** * Toggle download enabled. */ @@ -179,5 +178,4 @@ export class CoreCoursesDashboardPage implements OnInit, OnDestroy { this.updateSiteObserver?.off(); } - } diff --git a/src/core/features/courses/services/dashboard.ts b/src/core/features/courses/services/dashboard.ts index fd13fa7d1..717a43206 100644 --- a/src/core/features/courses/services/dashboard.ts +++ b/src/core/features/courses/services/dashboard.ts @@ -122,7 +122,6 @@ export class CoreCoursesDashboardProvider { export const CoreCoursesDashboard = makeSingleton(CoreCoursesDashboardProvider); - /** * Params of core_block_get_dashboard_blocks WS. */ diff --git a/src/core/features/courses/services/handlers/request-push-click.ts b/src/core/features/courses/services/handlers/request-push-click.ts index 523f8135d..e361fc0ee 100644 --- a/src/core/features/courses/services/handlers/request-push-click.ts +++ b/src/core/features/courses/services/handlers/request-push-click.ts @@ -25,7 +25,6 @@ import { CoreUtils } from '@services/utils/utils'; import { makeSingleton } from '@singletons'; import { CoreCourses } from '../courses'; - /** * Handler for course request push notifications clicks. */ diff --git a/src/core/features/emulator/components/capture-media/capture-media.ts b/src/core/features/emulator/components/capture-media/capture-media.ts index 10efb2035..aec2e3955 100644 --- a/src/core/features/emulator/components/capture-media/capture-media.ts +++ b/src/core/features/emulator/components/capture-media/capture-media.ts @@ -370,7 +370,6 @@ export class CoreEmulatorCaptureMediaComponent implements OnInit, OnDestroy { const height = this.streamVideo?.nativeElement.videoHeight; const loadingModal = await CoreDomUtils.showModalLoading(); - this.imgCanvas.nativeElement.width = width; this.imgCanvas.nativeElement.height = height; this.imgCanvas.nativeElement.getContext('2d').drawImage(this.streamVideo?.nativeElement, 0, 0, width, height); diff --git a/src/core/features/emulator/services/emulator-helper.ts b/src/core/features/emulator/services/emulator-helper.ts index 70904d243..d6cd71f86 100644 --- a/src/core/features/emulator/services/emulator-helper.ts +++ b/src/core/features/emulator/services/emulator-helper.ts @@ -51,7 +51,6 @@ export class CoreEmulatorHelperProvider { return; })); - return CoreUtils.allPromises(promises); } diff --git a/src/core/features/pushnotifications/services/database/pushnotifications.ts b/src/core/features/pushnotifications/services/database/pushnotifications.ts index c71bc8a08..e362803b2 100644 --- a/src/core/features/pushnotifications/services/database/pushnotifications.ts +++ b/src/core/features/pushnotifications/services/database/pushnotifications.ts @@ -109,7 +109,6 @@ export const SITE_SCHEMA: CoreSiteSchema = { ], }; - /** * Data stored in DB for badge. */ diff --git a/src/core/features/question/components/question/question.ts b/src/core/features/question/components/question/question.ts index 5617e21bf..0887de6bc 100644 --- a/src/core/features/question/components/question/question.ts +++ b/src/core/features/question/components/question/question.ts @@ -128,7 +128,6 @@ export class CoreQuestionComponent implements OnInit { return; } - // Load local answers if offline is enabled. if (this.offlineEnabled && this.component && this.attemptId) { await CoreQuestionHelper.loadLocalAnswers(this.question, this.component, this.attemptId); diff --git a/src/core/features/question/services/question.ts b/src/core/features/question/services/question.ts index 057c1015f..8cc478902 100644 --- a/src/core/features/question/services/question.ts +++ b/src/core/features/question/services/question.ts @@ -28,7 +28,6 @@ import { QUESTION_TABLE_NAME, } from './database/question'; - const QUESTION_PREFIX_REGEX = /q\d+:(\d+)_/; const STATES: Record = { todo: { diff --git a/src/core/features/rating/services/database/rating.ts b/src/core/features/rating/services/database/rating.ts index 667ecb749..9db9f7410 100644 --- a/src/core/features/rating/services/database/rating.ts +++ b/src/core/features/rating/services/database/rating.ts @@ -76,7 +76,6 @@ export const RATINGS_SITE_SCHEMA: CoreSiteSchema = { ], }; - /** * Primary data to identify a stored rating. */ diff --git a/src/core/features/rating/services/rating-sync.ts b/src/core/features/rating/services/rating-sync.ts index 77b658a22..b0ff4b011 100644 --- a/src/core/features/rating/services/rating-sync.ts +++ b/src/core/features/rating/services/rating-sync.ts @@ -25,7 +25,6 @@ import { CoreEvents } from '@singletons/events'; import { CoreRating } from './rating'; import { CoreRatingItemSet, CoreRatingOffline } from './rating-offline'; - /** * Service to sync ratings. */ diff --git a/src/core/features/rating/services/rating.ts b/src/core/features/rating/services/rating.ts index 5c28c9216..51f81c11a 100644 --- a/src/core/features/rating/services/rating.ts +++ b/src/core/features/rating/services/rating.ts @@ -513,7 +513,6 @@ export type CoreRatingItemRating = { timemodified: number; // Time modified (timestamp). }; - /** * Params of core_rating_get_item_ratings WS. */ @@ -535,7 +534,6 @@ export type CoreRatingGetItemRatingsWSResponse = { warnings?: CoreWSExternalWarning[]; }; - /** * Params of core_rating_add_rating WS. */ diff --git a/src/core/features/search/components/components.module.ts b/src/core/features/search/components/components.module.ts index 56ec2bc08..2c935312a 100644 --- a/src/core/features/search/components/components.module.ts +++ b/src/core/features/search/components/components.module.ts @@ -17,7 +17,6 @@ import { NgModule } from '@angular/core'; import { CoreSharedModule } from '@/core/shared.module'; import { CoreSearchBoxComponent } from './search-box/search-box'; - @NgModule({ declarations: [ CoreSearchBoxComponent, diff --git a/src/core/features/search/components/search-box/search-box.ts b/src/core/features/search/components/search-box/search-box.ts index 260f9b266..4b9e6ab76 100644 --- a/src/core/features/search/components/search-box/search-box.ts +++ b/src/core/features/search/components/search-box/search-box.ts @@ -159,7 +159,6 @@ export class CoreSearchBoxComponent implements OnInit { if (!this.formElement) { this.formElement = event.detail.target.closest('form'); - this.formElement?.addEventListener('blur', () => { // Wait the new element to be focused. setTimeout(() => { diff --git a/src/core/features/settings/pages/general/general.ts b/src/core/features/settings/pages/general/general.ts index 9f9f8aebf..9ac33264d 100644 --- a/src/core/features/settings/pages/general/general.ts +++ b/src/core/features/settings/pages/general/general.ts @@ -94,7 +94,6 @@ export class CoreSettingsGeneralPage { selected: value === this.selectedZoomLevel, })); - this.richTextEditor = await CoreConfig.get(CoreConstants.SETTINGS_RICH_TEXT_EDITOR, true); this.debugDisplay = await CoreConfig.get(CoreConstants.SETTINGS_DEBUG_DISPLAY, false); diff --git a/src/core/features/settings/pages/synchronization/synchronization.module.ts b/src/core/features/settings/pages/synchronization/synchronization.module.ts index 8a6f3d901..aeac4fea4 100644 --- a/src/core/features/settings/pages/synchronization/synchronization.module.ts +++ b/src/core/features/settings/pages/synchronization/synchronization.module.ts @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. - import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; diff --git a/src/core/features/settings/services/settings-helper.ts b/src/core/features/settings/services/settings-helper.ts index ec663019a..572d31f2c 100644 --- a/src/core/features/settings/services/settings-helper.ts +++ b/src/core/features/settings/services/settings-helper.ts @@ -115,7 +115,6 @@ export class CoreSettingsHelperProvider { const promises: Promise[] = cleanSchemas.map((name) => site.getDb().deleteRecords(name)); const filepoolService = CoreFilepool.instance; - promises.push(site.deleteFolder().then(() => { filepoolService.clearAllPackagesStatus(siteId); filepoolService.clearFilepool(siteId); diff --git a/src/core/features/siteplugins/components/question-behaviour/question-behaviour.ts b/src/core/features/siteplugins/components/question-behaviour/question-behaviour.ts index e6e9fe380..04428e45c 100644 --- a/src/core/features/siteplugins/components/question-behaviour/question-behaviour.ts +++ b/src/core/features/siteplugins/components/question-behaviour/question-behaviour.ts @@ -18,7 +18,6 @@ import { CoreQuestionBehaviourDelegate } from '@features/question/services/behav import { CoreQuestionBehaviourButton, CoreQuestionQuestion } from '@features/question/services/question-helper'; import { CoreSitePluginsCompileInitComponent } from '@features/siteplugins/classes/compile-init-component'; - /** * Component that displays a question behaviour created using a site plugin. */ diff --git a/src/core/features/siteplugins/components/user-profile-field/user-profile-field.ts b/src/core/features/siteplugins/components/user-profile-field/user-profile-field.ts index 6b2240675..e30675854 100644 --- a/src/core/features/siteplugins/components/user-profile-field/user-profile-field.ts +++ b/src/core/features/siteplugins/components/user-profile-field/user-profile-field.ts @@ -20,7 +20,6 @@ import { CoreSitePluginsCompileInitComponent } from '@features/siteplugins/class import { CoreUserProfileField } from '@features/user/services/user'; import { CoreUserProfileFieldDelegate } from '@features/user/services/user-profile-field-delegate'; - /** * Component that displays a user profile field created using a site plugin. */ diff --git a/src/core/features/siteplugins/pages/course-option/course-option.ts b/src/core/features/siteplugins/pages/course-option/course-option.ts index f98773134..363a1fe39 100644 --- a/src/core/features/siteplugins/pages/course-option/course-option.ts +++ b/src/core/features/siteplugins/pages/course-option/course-option.ts @@ -123,7 +123,6 @@ export class CoreSitePluginsCourseOptionPage implements OnInit { return true; } - const result = await this.content.callComponentFunction('canLeave'); return result === undefined || result === null ? true : !!result; diff --git a/src/core/features/siteplugins/pages/module-index/module-index.ts b/src/core/features/siteplugins/pages/module-index/module-index.ts index b4daca1f6..5a8c07f4d 100644 --- a/src/core/features/siteplugins/pages/module-index/module-index.ts +++ b/src/core/features/siteplugins/pages/module-index/module-index.ts @@ -100,7 +100,6 @@ export class CoreSitePluginsModuleIndexPage implements OnInit, CanLeave { return true; } - const result = await this.content.callComponentFunction('canLeave'); return result === undefined || result === null ? true : !!result; diff --git a/src/core/features/siteplugins/services/siteplugins.ts b/src/core/features/siteplugins/services/siteplugins.ts index cbbfbea40..57a707a95 100644 --- a/src/core/features/siteplugins/services/siteplugins.ts +++ b/src/core/features/siteplugins/services/siteplugins.ts @@ -93,7 +93,6 @@ export class CoreSitePluginsProvider { appplatform: 'browser', }; - if (args.appismobile) { defaultArgs.appplatform = CoreApp.isIOS() ? 'ios' : 'android'; } @@ -582,7 +581,6 @@ export class CoreSitePluginsProvider { const result = await this.getContent(component, method, args, preSets); - // Prefetch the files in the content. if (result.files.length) { await CoreFilepool.downloadOrPrefetchFiles( diff --git a/src/core/features/user/classes/base-profilefield-component.ts b/src/core/features/user/classes/base-profilefield-component.ts index f99fc225f..c2b5ccb81 100644 --- a/src/core/features/user/classes/base-profilefield-component.ts +++ b/src/core/features/user/classes/base-profilefield-component.ts @@ -36,7 +36,6 @@ export abstract class CoreUserProfileFieldBaseComponent implements OnInit { @Input() contextInstanceId?: number; // The instance ID related to the context. @Input() courseId?: number; // Course ID the field belongs to (if any). It can be used to improve performance with filters. - control?: FormControl; modelName = ''; value?: string; diff --git a/src/core/features/user/services/user.ts b/src/core/features/user/services/user.ts index 1439f184a..ff530424d 100644 --- a/src/core/features/user/services/user.ts +++ b/src/core/features/user/services/user.ts @@ -730,7 +730,6 @@ export class CoreUserProvider { return CoreUserOffline.setPreference(name, value); } - try { // Update the preference in the site. const preferences = [ diff --git a/src/core/services/cron.ts b/src/core/services/cron.ts index 4fabd91c0..dd39cd04d 100644 --- a/src/core/services/cron.ts +++ b/src/core/services/cron.ts @@ -478,7 +478,6 @@ export class CoreCronDelegateService { export const CoreCronDelegate = makeSingleton(CoreCronDelegateService); - /** * Interface that all cron handlers must implement. */ diff --git a/src/core/services/groups.ts b/src/core/services/groups.ts index cedb82af9..f6dd817c2 100644 --- a/src/core/services/groups.ts +++ b/src/core/services/groups.ts @@ -449,7 +449,6 @@ export type CoreGroup = { courseid?: number; // Coure Id. }; - /** * Group info for an activity. */ diff --git a/src/core/services/utils/dom.ts b/src/core/services/utils/dom.ts index 52b82602b..c22550e67 100644 --- a/src/core/services/utils/dom.ts +++ b/src/core/services/utils/dom.ts @@ -1732,7 +1732,6 @@ export class CoreDomUtilsProvider { cssClass: fullScreen ? 'core-modal-fullscreen' : '', }); - await modal.present(); } diff --git a/src/core/services/utils/utils.ts b/src/core/services/utils/utils.ts index e9ac75b7d..859d46162 100644 --- a/src/core/services/utils/utils.ts +++ b/src/core/services/utils/utils.ts @@ -1509,7 +1509,6 @@ export class CoreUtilsProvider { // do nothing } - if (!CoreApp.isMobile()) { return Promise.reject('QRScanner isn\'t available in browser.'); } diff --git a/src/core/services/ws.ts b/src/core/services/ws.ts index 49edf5b2b..912cd65e9 100644 --- a/src/core/services/ws.ts +++ b/src/core/services/ws.ts @@ -1104,7 +1104,6 @@ export type CoreWSDate = { timestamp: number; // Timestamp. }; - /** * PreSets accepted by the WS call. */