From 1caffd5cc4523ed5b4dac7260a9ec79ae6c714b1 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Thu, 4 Aug 2016 18:41:08 -0700 Subject: [PATCH] remove dead code Don commented out these lines in db0d291b741 on 26 January 2007, so I think it's safe to assume they won't be missed --- gramps/plugins/export/exportpkg.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/gramps/plugins/export/exportpkg.py b/gramps/plugins/export/exportpkg.py index 00242992b..11f76b4bc 100644 --- a/gramps/plugins/export/exportpkg.py +++ b/gramps/plugins/export/exportpkg.py @@ -187,26 +187,6 @@ class PackageWriter: archname = str(mobject.get_path()) if os.path.isfile(filename) and os.access(filename, os.R_OK): archive.add(filename, archname) -# else: -# # File is lost => ask what to do -# if missmedia_action == 0: -# mmd = MissingMediaDialog( # no-parent -# _("Media object could not be found"), -# _("%(file_name)s is referenced in the database, " -# "but no longer exists. The file may have been " -# "deleted or moved to a different location. " -# "You may choose to either remove the reference " -# "from the database, keep the reference to the " -# "missing file, or select a new file." -# ) % { 'file_name' : filename }, -# remove_clicked, leave_clicked, select_clicked) -# missmedia_action = mmd.default_action -# elif missmedia_action == 1: -# remove_clicked() -# elif missmedia_action == 2: -# leave_clicked() -# elif missmedia_action == 3: -# select_clicked() # Write XML now g = BytesIO()