From bb3261782fa74919c3ee34baf60dc09da61aff1e Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Sun, 13 Oct 2019 20:02:49 +0200 Subject: Extensions: Improve logic to lookup script extensions - Use identical logic for looking up s and s. - Remove duplicate (but inconsistent and incomplete) logic from script.cpp that was used to search for the again - Remove element from .inx format It seems unused (at the very least by core extensions) and redundant to checking - Deprecate the -specific "reldir" attribute. Consistently use the functionally identical "location" attribute that was only used for s before - Introduce the new relative location value location="inx", which looks up and s relative to the .inx file's location. --- src/extension/implementation/script.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/extension/implementation/script.h') diff --git a/src/extension/implementation/script.h b/src/extension/implementation/script.h index 9a3b40278..425198be3 100644 --- a/src/extension/implementation/script.h +++ b/src/extension/implementation/script.h @@ -76,8 +76,6 @@ private: */ Gtk::Window *parent_window; - std::string solve_reldir(Inkscape::XML::Node *repr_in); - bool check_existence (std::string const& command); void copy_doc(Inkscape::XML::Node * olddoc, Inkscape::XML::Node * newdoc); void checkStderr (Glib::ustring const& filename, Gtk::MessageType type, Glib::ustring const& message); -- cgit v1.2.3