Skip to content

Commit

Permalink
typekits: no need to explictely resolve the typekit pkg-config object…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
doudou committed May 13, 2016
1 parent 777475b commit 716cda8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/orocos/typekits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 716cda8

Please sign in to comment.