aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/search
diff options
context:
space:
mode:
authorFlorent F <florent.fayolle69@gmail.com>2019-11-02 17:08:23 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-11-04 16:46:37 +0100
commit532ea1fe22c94bb379ed219993237ed2e556f406 (patch)
tree7ce2c26ea3ad397ea56d2c275807cc3b95a23e49 /shared/extra-utils/search
parentbcd4cf0586ac376c272e7d7e24dbeb821aac579d (diff)
downloadPeerTube-532ea1fe22c94bb379ed219993237ed2e556f406.tar.gz
PeerTube-532ea1fe22c94bb379ed219993237ed2e556f406.tar.zst
PeerTube-532ea1fe22c94bb379ed219993237ed2e556f406.zip
Remove unused function searchVideoWithPagination
Diffstat (limited to 'shared/extra-utils/search')
-rw-r--r--shared/extra-utils/search/videos.ts21
1 files changed, 0 insertions, 21 deletions
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
29 .expect('Content-Type', /json/) 29 .expect('Content-Type', /json/)
30} 30}
31 31
32function searchVideoWithPagination (url: string, search: string, start: number, count: number, sort?: string) {
33 const path = '/api/v1/search/videos'
34
35 const query = {
36 start,
37 search,
38 count
39 }
40
41 const req = request(url)
42 .get(path)
43 .query(query)
44
45 if (sort) req.query({ sort })
46
47 return req.set('Accept', 'application/json')
48 .expect(200)
49 .expect('Content-Type', /json/)
50}
51
52function searchVideoWithSort (url: string, search: string, sort: string) { 32function searchVideoWithSort (url: string, search: string, sort: string) {
53 const path = '/api/v1/search/videos' 33 const path = '/api/v1/search/videos'
54 34
@@ -79,6 +59,5 @@ export {
79 searchVideo, 59 searchVideo,
80 advancedVideosSearch, 60 advancedVideosSearch,
81 searchVideoWithToken, 61 searchVideoWithToken,
82 searchVideoWithPagination,
83 searchVideoWithSort 62 searchVideoWithSort
84} 63}