From 532ea1fe22c94bb379ed219993237ed2e556f406 Mon Sep 17 00:00:00 2001 From: Florent F Date: Sat, 2 Nov 2019 17:08:23 +0100 Subject: Remove unused function searchVideoWithPagination --- shared/extra-utils/search/videos.ts | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'shared/extra-utils/search/videos.ts') diff --git a/shared/extra-utils/search/videos.ts b/shared/extra-utils/search/videos.ts index 5cf8d8cf0..da806e692 100644 --- a/shared/extra-utils/search/videos.ts +++ b/shared/extra-utils/search/videos.ts @@ -29,26 +29,6 @@ function searchVideoWithToken (url: string, search: string, token: string, query .expect('Content-Type', /json/) } -function searchVideoWithPagination (url: string, search: string, start: number, count: number, sort?: string) { - const path = '/api/v1/search/videos' - - const query = { - start, - search, - count - } - - const req = request(url) - .get(path) - .query(query) - - if (sort) req.query({ sort }) - - return req.set('Accept', 'application/json') - .expect(200) - .expect('Content-Type', /json/) -} - function searchVideoWithSort (url: string, search: string, sort: string) { const path = '/api/v1/search/videos' @@ -79,6 +59,5 @@ export { searchVideo, advancedVideosSearch, searchVideoWithToken, - searchVideoWithPagination, searchVideoWithSort } -- cgit v1.2.3