aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-11 21:41:46 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-11 22:35:27 +0100
commite27dabb7c338116b1f496d09d51c6869e298e043 (patch)
tree8b59461d5c48861bf457964b62e14c1e6836c7b7 /ruby
parent213d61ac7e59b497355d13ab758b2dccd9d57792 (diff)
downloadpaludis-e27dabb7c338116b1f496d09d51c6869e298e043.tar.gz
paludis-e27dabb7c338116b1f496d09d51c6869e298e043.tar.xz
Remove ProvidesInterface
Diffstat (limited to 'ruby')
-rw-r--r--ruby/repository.cc2
-rw-r--r--ruby/repository_TEST.rb5
2 files changed, 2 insertions, 5 deletions
diff --git a/ruby/repository.cc b/ruby/repository.cc
index 62eadfdeb..537e51c81 100644
--- a/ruby/repository.cc
+++ b/ruby/repository.cc
@@ -632,8 +632,6 @@ namespace
rb_define_method(c_repository, "environment_variable_interface", RUBY_FUNC_CAST((&Interface<
n::environment_variable_interface, RepositoryEnvironmentVariableInterface, &Repository::environment_variable_interface>::fetch)), 0);
- rb_define_method(c_repository, "provides_interface", RUBY_FUNC_CAST((&Interface<
- n::provides_interface, RepositoryProvidesInterface, &Repository::provides_interface>::fetch)), 0);
rb_define_method(c_repository, "virtuals_interface", RUBY_FUNC_CAST((&Interface<
n::virtuals_interface, RepositoryVirtualsInterface, &Repository::virtuals_interface>::fetch)), 0);
rb_define_method(c_repository, "some_ids_might_support_action", RUBY_FUNC_CAST(&repository_some_ids_might_support_action), 1);
diff --git a/ruby/repository_TEST.rb b/ruby/repository_TEST.rb
index f11b1f1c7..8ca995709 100644
--- a/ruby/repository_TEST.rb
+++ b/ruby/repository_TEST.rb
@@ -168,14 +168,13 @@ module Paludis
def test_responds
repo = no_config_testrepo.main_repository
[
- :environment_variable_interface,
- :provides_interface, :virtuals_interface].each do |sym|
+ :environment_variable_interface, :virtuals_interface].each do |sym|
assert_respond_to repo, sym
end
end
def test_interfaces
- assert_equal installed_repo.name, installed_repo.provides_interface.name
+ assert_equal installed_repo.name, installed_repo.environment_variable_interface.name
assert_nil installed_repo.virtuals_interface
end