[rygel] media-export: No need for harvester trash
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: No need for harvester trash
- Date: Thu, 12 Aug 2010 15:19:29 +0000 (UTC)
commit 2167b105c0d9dbae8d478e8525679838c2518953
Author: Jens Georg <mail jensge org>
Date: Thu Jul 29 17:38:08 2010 +0200
media-export: No need for harvester trash
.../media-export/rygel-media-export-harvester.vala | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-harvester.vala b/src/plugins/media-export/rygel-media-export-harvester.vala
index 8da1940..d4efde9 100644
--- a/src/plugins/media-export/rygel-media-export-harvester.vala
+++ b/src/plugins/media-export/rygel-media-export-harvester.vala
@@ -21,7 +21,6 @@ using Gee;
internal class Rygel.MediaExport.Harvester : GLib.Object {
private HashMap<File, HarvestingTask> tasks;
- private ArrayList<HarvestingTask> trash;
private MetadataExtractor extractor;
private RecursiveFileMonitor monitor;
@@ -30,7 +29,6 @@ internal class Rygel.MediaExport.Harvester : GLib.Object {
this.extractor = extractor;
this.monitor = monitor;
this.tasks = new HashMap<File, HarvestingTask> (file_hash, file_equal);
- this.trash = new ArrayList<HarvestingTask> ();
}
public void schedule (File file,
@@ -61,8 +59,6 @@ internal class Rygel.MediaExport.Harvester : GLib.Object {
task.completed.disconnect (this.on_file_harvested);
this.tasks.remove (file);
task.cancellable.cancel ();
- task.completed.connect (this.on_remove_cancelled_harvester);
- this.trash.add (task);
}
}
@@ -73,8 +69,4 @@ internal class Rygel.MediaExport.Harvester : GLib.Object {
this.tasks.remove (file);
}
-
- private void on_remove_cancelled_harvester (StateMachine state_machine) {
- this.trash.remove (state_machine as HarvestingTask);
- }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]