aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_source
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-09-16 03:17:35 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-09-16 15:43:31 +0200
commit4a39631eafe8e7144a92e2c33e0688a8f3b83295 (patch)
tree4c28d850d2c946ffc38f6af1fd5a6b23350f4633 /components/script/task_source
parent56117d31856be46d7df417e659a4406305b4e258 (diff)
downloadservo-4a39631eafe8e7144a92e2c33e0688a8f3b83295.tar.gz
servo-4a39631eafe8e7144a92e2c33e0688a8f3b83295.zip
Remove FileReadingRunnable
Diffstat (limited to 'components/script/task_source')
-rw-r--r--components/script/task_source/file_reading.rs18
1 files changed, 3 insertions, 15 deletions
diff --git a/components/script/task_source/file_reading.rs b/components/script/task_source/file_reading.rs
index 433cc78c260..dc9a6a751dd 100644
--- a/components/script/task_source/file_reading.rs
+++ b/components/script/task_source/file_reading.rs
@@ -34,21 +34,9 @@ impl TaskSource for FileReadingTaskSource {
}
}
-pub struct FileReadingRunnable {
- task: FileReadingTask,
-}
-
-impl FileReadingRunnable {
- pub fn new(task: FileReadingTask) -> Box<FileReadingRunnable> {
- box FileReadingRunnable {
- task: task
- }
- }
-}
-
-impl Task for FileReadingRunnable {
- fn run(self: Box<FileReadingRunnable>) {
- self.task.handle_task();
+impl Task for FileReadingTask {
+ fn run(self: Box<Self>) {
+ self.handle_task();
}
}