From 716cda80c0b480ae5b32302bd0c98fddbf7c712c Mon Sep 17 00:00:00 2001 From: Sylvain Joyeux Date: Mon, 18 Apr 2016 12:02:42 -0300 Subject: [PATCH] typekits: no need to explictely resolve the typekit pkg-config object in Orocos.load_typekit anymore This actually was harming load times, as we would unconditionally load the pkg-config object while load_typekit_plugins would do it only if the typekit was not already loaded. --- lib/orocos/typekits.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/orocos/typekits.rb b/lib/orocos/typekits.rb index a6612f7a..1800191a 100644 --- a/lib/orocos/typekits.rb +++ b/lib/orocos/typekits.rb @@ -76,8 +76,7 @@ def self.load_plugin_library(libpath) # :nodoc: def self.load_typekit(name) @lock.synchronize do typekit = default_pkgconfig_loader.typekit_model_from_name(name) - typekit_pkg = find_typekit_pkg(name) - load_typekit_plugins(name, typekit_pkg) + load_typekit_plugins(name) end end