Skip to content

Commit 8c26a53

Browse files
committed
refactor(go-pro-media.service.ts): remove unused methods
1 parent 5c98461 commit 8c26a53

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/app/features/settings/go-pro/services/go-pro-media.service.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,6 @@ export class GoProMediaService {
5454
return 'unknown';
5555
}
5656

57-
// eslint-disable-next-line class-methods-use-this
58-
extractFileNameFromUrl(url: string): string {
59-
// return extract filename with extension from url
60-
// example 001.jpg, 002.mp4
61-
return url.split('?')[0].split('/').pop() ?? '';
62-
}
63-
64-
// eslint-disable-next-line class-methods-use-this
65-
extractFileExtensionFormUrl(filaName: string): string {
66-
return filaName.split('?')[0].split('.').pop() ?? '';
67-
}
68-
6957
// eslint-disable-next-line class-methods-use-this
7058
extractFileNameFromGoProUrl(url: string): string {
7159
// example of GoPro urls
@@ -74,11 +62,6 @@ export class GoProMediaService {
7462
return url.split('/').pop() ?? '';
7563
}
7664

77-
// eslint-disable-next-line class-methods-use-this
78-
extractFileExtensionFromGoProUrl(url: string): string {
79-
return url.split('.').pop() ?? '';
80-
}
81-
8265
// eslint-disable-next-line class-methods-use-this
8366
getThumbnailUrlFrom(url: string): string {
8467
const fileName = url.split('/').pop();

0 commit comments

Comments
 (0)