[pitivi: 81/94] presets: remove unused code
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 81/94] presets: remove unused code
- Date: Sun, 11 Sep 2011 16:19:15 +0000 (UTC)
commit 8df7371210052b168443bfa8f6e26ec07ab1ea38
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Thu Sep 8 15:22:44 2011 -0400
presets: remove unused code
pitivi/ui/encodingdialog.py | 6 ------
pitivi/ui/preset.py | 26 --------------------------
2 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 5a02f93..5af45eb 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -439,12 +439,6 @@ class EncodingDialog(Renderer, Loggable):
self.render_presets.savePreset()
self.save_render_preset_button.set_sensitive(False)
- def _copyRenderPresets(self, cur_preset):
- # Copies current settings to presets
-
- self.render_presets._updatePreset()
- self.render_presets.saveAll()
-
def _updateRenderPresetButtons(self):
preset_changed = self.render_presets.isSaveButtonSensitive()
self.save_render_preset_button.set_sensitive(preset_changed)
diff --git a/pitivi/ui/preset.py b/pitivi/ui/preset.py
index f552d2f..520eec7 100644
--- a/pitivi/ui/preset.py
+++ b/pitivi/ui/preset.py
@@ -65,9 +65,6 @@ class PresetManager(object):
# Whether to ignore the updateValue calls.
self._ignore_update_requests = False
- def _getFilename(self):
- return os.path.join(xdg_data_home(), self.filename)
-
def load(self):
filepaths = []
try:
@@ -99,29 +96,6 @@ class PresetManager(object):
except IOError:
pass # TODO: show an error infobar
- def _loadPreset(self, parser, section):
- """Load the specified section from the specified config parser.
-
- @param parser: The config parser from which the section will be loaded.
- @type parser: ConfigParser
- @param section: The name of the section to be loaded.
- @type section: str
- @return: A dict representing a preset.
- """
- raise NotImplementedError()
-
- def _savePreset(self, parser, section, values):
- """Create the specified section into the specified config parser.
-
- @param parser: The config parser in which the section will be created.
- @type parser: ConfigParser
- @param section: The name of the section to be created.
- @type section: str
- @param values: The values of a preset.
- @type values: dict
- """
- raise NotImplementedError()
-
def _convertSectionNameToPresetName(self, section):
# A section name for a ConfigParser can have any name except "default"!
assert section != "default"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]