Skip to content

Commit

Permalink
Revert "Added DSL Feature for creating dispatch queues"
Browse files Browse the repository at this point in the history
This reverts commit 33ccb41.
  • Loading branch information
tonyofrancis committed May 29, 2019
1 parent 33ccb41 commit 0ac7248
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 245 deletions.
23 changes: 0 additions & 23 deletions app/src/main/java/com/tonyodev/dispatcherapp/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import com.tonyodev.dispatch.DispatchQueue
import com.tonyodev.dispatch.DispatchQueueErrorCallback
import com.tonyodev.dispatch.async
import com.tonyodev.dispatch.post
import com.tonyodev.dispatchandroid.managedBy
import com.tonyodev.dispatchretrofit.DispatchQueueCallAdapterFactory
import retrofit2.Retrofit
Expand Down Expand Up @@ -36,7 +34,6 @@ class MainActivity : AppCompatActivity() {

runTestService()
runTestTimer()
runDSL()
}

private fun runTestService() {
Expand Down Expand Up @@ -84,24 +81,4 @@ class MainActivity : AppCompatActivity() {
})
}

private fun runDSL() {
async {
run {
processServiceData()
}
}
}

private fun processServiceData() {
val data = service.getData().execute().body()
post {
run {
println("This was a fun service Fetch using DSL. ")
data?.forEach {
println(it.toString())
}
}
}
}

}
4 changes: 0 additions & 4 deletions app/src/main/java/com/tonyodev/dispatcherapp/TestService.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
package com.tonyodev.dispatcherapp

import com.tonyodev.dispatch.DispatchQueue
import retrofit2.Call
import retrofit2.http.GET

interface TestService {

@GET("/todos")
fun getSampleJson(): DispatchQueue<List<TestJsonData>>

@GET("/todos")
fun getData(): Call<List<TestJsonData>>

}
110 changes: 0 additions & 110 deletions dispatch/src/main/java/com/tonyodev/dispatch/DSL.kt

This file was deleted.

This file was deleted.

0 comments on commit 0ac7248

Please sign in to comment.