refactor: remove outdated code

This commit is contained in:
4gray committed 2020-09-08 09:09:50 +02:00
1 parent 135a6434d6
commit a984ce68d3
3 files changed
+1 -34

No files matched your search

+1 -2
View File
@@ -22,7 +22,6 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RecentPlaylistsComponent } from './recent-playlists/recent-playlists.component';
import { ChannelListContainerComponent } from './channel-list-container/channel-list-container.component';
import { FilterPipeModule } from 'ngx-filter-pipe';
import { M3uService } from './services/m3u-service.service';
// AoT requires an exported function for factories
export function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader {
@@ -55,7 +54,7 @@ export function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader {
}),
NgxUploaderModule,
],
providers: [M3uService],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
@@ -1,16 +0,0 @@
/* tslint:disable:no-unused-variable */
import { TestBed, async, inject } from '@angular/core/testing';
import { M3uServiceService } from './m3u-service.service';
describe('Service: M3uService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [M3uServiceService]
});
});
it('should ...', inject([M3uServiceService], (service: M3uServiceService) => {
expect(service).toBeTruthy();
}));
});
-16
View File
@@ -1,16 +0,0 @@
import { Injectable } from '@angular/core';
import { parse } from 'iptv-playlist-parser';
@Injectable({
providedIn: 'root',
})
export class M3uService {
/**
* Parses string based array to playlist object
* @param m3uArray m3u playlist as array with strings
*/
parsePlaylist(m3uArray: any[]): any {
const playlistAsString = m3uArray.join('\n');
return parse(playlistAsString);
}
}