diff -r 0e29e54e9269 -r 2a91e0e05926 eric7/Graphics/UMLDialog.py --- a/eric7/Graphics/UMLDialog.py Sat May 22 20:18:22 2021 +0200 +++ b/eric7/Graphics/UMLDialog.py Sat May 22 20:25:21 2021 +0200 @@ -401,42 +401,6 @@ return True -## def __writeLineBasedGraphicsFile(self, filename): -## """ -## Private method to write an eric graphics file using the old line -## based file format. -## -## @param filename name of the file to write to -## @type str -## @return flag indicating a successful write -## @rtype bool -## """ -## lines = [ -## "version: 1.0", -## "diagram_type: {0} ({1})".format( -## self.__diagramType.value, -## self.__getDiagramTitel(self.__diagramType)), -## "scene_size: {0};{1}".format(self.scene.width(), -## self.scene.height()), -## ] -## persistenceData = self.builder.getPersistenceData() -## if persistenceData: -## lines.append("builder_data: {0}".format(persistenceData)) -## lines.extend(self.umlView.getPersistenceData()) -## -## try: -## with open(filename, "w", encoding="utf-8") as f: -## f.write("\n".join(lines)) -## return True -## except OSError as err: -## EricMessageBox.critical( -## self, -## self.tr("Save Diagram"), -## self.tr( -## """<p>The file <b>{0}</b> could not be saved.</p>""" -## """<p>Reason: {1}</p>""").format(filename, str(err))) -## return False -## def __showInvalidDataMessage(self, filename, linenum=-1): """ Private slot to show a message dialog indicating an invalid data file.