File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
src/app/features/settings/go-pro/services Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments