[pitivi] formatters.etree: remove completely-unused and redundant method _loadProject
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] formatters.etree: remove completely-unused and redundant method _loadProject
- Date: Sun, 19 Apr 2009 10:13:31 -0400 (EDT)
commit 62671e002762ca3f096de141cc03cadd452c68bf
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Fri Apr 17 18:30:34 2009 -0700
formatters.etree: remove completely-unused and redundant method _loadProject
---
pitivi/formatters/etree.py | 25 -------------------------
1 files changed, 0 insertions(+), 25 deletions(-)
diff --git a/pitivi/formatters/etree.py b/pitivi/formatters/etree.py
index f9c8827..06c61cb 100644
--- a/pitivi/formatters/etree.py
+++ b/pitivi/formatters/etree.py
@@ -426,31 +426,6 @@ class ElementTreeFormatter(Formatter):
root.append(timeline_element)
return root
- def _loadProject(self, element):
- factories_element = element.find("factories")
- factories = self._loadFactories(factories_element)
-
- timeline_element = element.find("timeline")
- timeline = self._loadTimeline(timeline_element)
-
- project = Project()
- project.timeline = timeline
-
- # FIXME: the default- and max- duration properties of factories are
- # *not* restored here, so adding objects to the timeline after loading
- # a files produces objects of 0 duration
-
- for factory in factories:
- if isinstance(factory, SourceFactory):
- timeline.addSourceFactory(factory)
- else:
- raise NotImplementedError()
-
- # TODO: restore project settings
- # TODO: restore scroll, playhead, and zoom ratio
-
- return project
-
## Formatter method implementations
def _saveProject(self, project, location):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]