Remove unused function searchVideoWithPagination
authorFlorent F <florent.fayolle69@gmail.com>
Sat, 2 Nov 2019 16:08:23 +0000 (17:08 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 4 Nov 2019 15:46:37 +0000 (16:46 +0100)
shared/extra-utils/search/videos.ts

index 5cf8d8cf05d23c072598c3eb574ab421e4ff23df..da806e692082f2269a6ef94b3c18b076847325f8 100644 (file)
@@ -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
 }