Skip to content

Commit c242b8e

Browse files
committed
Removed rx methods from GitHubService
1 parent d1bbcf7 commit c242b8e

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/contributors/GitHubService.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,6 @@ interface GitHubService {
3838
@Path("owner") owner: String,
3939
@Path("repo") repo: String
4040
): Response<List<User>>
41-
42-
@GET("orgs/{org}/repos?per_page=100")
43-
fun getOrgReposRx(
44-
@Path("org") org: String
45-
): Observable<Response<List<Repo>>>
46-
47-
@GET("repos/{owner}/{repo}/contributors?per_page=100")
48-
fun getRepoContributorsRx(
49-
@Path("owner") owner: String,
50-
@Path("repo") repo: String
51-
): Observable<Response<List<User>>>
5241
}
5342

5443
@JsonIgnoreProperties(ignoreUnknown = true)

test/contributors/MockGithubService.kt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package contributors
22

3-
import io.reactivex.Observable
43
import kotlinx.coroutines.delay
54
import retrofit2.Call
65
import retrofit2.Response
@@ -25,12 +24,4 @@ object MockGithubService : GitHubService {
2524
delay(testRepo.delay)
2625
return Response.success(testRepo.users)
2726
}
28-
29-
override fun getOrgReposRx(org: String): Observable<Response<List<Repo>>> {
30-
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
31-
}
32-
33-
override fun getRepoContributorsRx(owner: String, repo: String): Observable<Response<List<User>>> {
34-
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
35-
}
3627
}

0 commit comments

Comments
 (0)