From de560504fefdead2468fb04c98e7812018c28354 Mon Sep 17 00:00:00 2001 From: Windell Oskay Date: Sun, 7 Aug 2016 19:25:12 -0700 Subject: [PATCH] Remove "Strip EggBot Data" extension functionality moved to "manual" tab of EggBot Control extension. --- inkscape_driver/eggbot_stripdata.inx | 17 ---------------- inkscape_driver/eggbot_stripdata.py | 30 ---------------------------- 2 files changed, 47 deletions(-) delete mode 100755 inkscape_driver/eggbot_stripdata.inx delete mode 100755 inkscape_driver/eggbot_stripdata.py diff --git a/inkscape_driver/eggbot_stripdata.inx b/inkscape_driver/eggbot_stripdata.inx deleted file mode 100755 index e9f03ec..0000000 --- a/inkscape_driver/eggbot_stripdata.inx +++ /dev/null @@ -1,17 +0,0 @@ - - - <_name>Strip Eggbot Data - command.evilmadscience.eggbot_stripdata1.eggbot - org.inkscape.output.svg.inkscape - eggbot_stripdata.py - inkex.py - - all - - - - - - diff --git a/inkscape_driver/eggbot_stripdata.py b/inkscape_driver/eggbot_stripdata.py deleted file mode 100755 index 9e5868b..0000000 --- a/inkscape_driver/eggbot_stripdata.py +++ /dev/null @@ -1,30 +0,0 @@ -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -import gettext -import inkex - -class EggBotStripData( inkex.Effect ): - def __init__( self ): - inkex.Effect.__init__( self ) - - def effect( self ): - '''Main entry point: check to see which tab is selected, and act accordingly.''' - self.svg = self.document.getroot() - for node in self.svg.xpath( '//svg:eggbot', namespaces=inkex.NSS ): - self.svg.remove( node ) - inkex.errormsg( gettext.gettext( "Okay, I've removed all Eggbot data from this Inkscape file. Have a nice day!" ) ) - -e = EggBotStripData() -e.affect()