aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-27 20:35:18 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-27 20:35:18 +0000
commit761f72d25876dac3e239fad163123d35cacda4a0 (patch)
treef8b0b5725f1cc53b9840c36cda10527f97c7ed4c /ruby
parentf37072df0cbd9bf0a2d3ad670728e1238ea243db (diff)
downloadpaludis-761f72d25876dac3e239fad163123d35cacda4a0.tar.gz
paludis-761f72d25876dac3e239fad163123d35cacda4a0.tar.xz
Nothing uses default_destinations now
Diffstat (limited to 'ruby')
-rw-r--r--ruby/environment.cc22
-rw-r--r--ruby/environment_TEST.rb16
2 files changed, 1 insertions, 37 deletions
diff --git a/ruby/environment.cc b/ruby/environment.cc
index e8befb2b5..8d9d9b860 100644
--- a/ruby/environment.cc
+++ b/ruby/environment.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2006, 2007, 2008, 2009, 2010 Ciaran McCreesh
+ * Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011 Ciaran McCreesh
* Copyright (c) 2007, 2008 Richard Brown
*
* This file is part of the Paludis package manager. Paludis is free software;
@@ -187,25 +187,6 @@ namespace
}
}
- /*
- * call-seq:
- * default_destinations -> Array
- *
- * Default: All repositories that provide RepositoryDestinationInterface and mark themselves
- * as a default destination.
- */
- VALUE
- environment_default_destinations(VALUE self)
- {
- std::shared_ptr<const DestinationsSet> dc (value_to_environment(self)->default_destinations());
- VALUE result(rb_ary_new());
- for (DestinationsSet::ConstIterator i(dc->begin()), i_end(dc->end()) ; i != i_end ; ++i)
- rb_ary_push(result, repository_to_value(*i));
-
- return result;
-
- }
-
VALUE
environment_distribution(VALUE self)
{
@@ -485,7 +466,6 @@ namespace
rb_funcall(c_environment, rb_intern("private_class_method"), 1, rb_str_new2("new"));
rb_define_method(c_environment, "package_database", RUBY_FUNC_CAST(&environment_package_database), 0);
rb_define_method(c_environment, "set", RUBY_FUNC_CAST(&environment_set), 1);
- rb_define_method(c_environment, "default_destinations", RUBY_FUNC_CAST(&environment_default_destinations), 0);
rb_define_method(c_environment, "distribution", RUBY_FUNC_CAST(&environment_distribution), 0);
rb_define_method(c_environment, "accept_license", RUBY_FUNC_CAST(&environment_accept_license), 2);
rb_define_method(c_environment, "accept_keywords", RUBY_FUNC_CAST(&environment_accept_keywords), 2);
diff --git a/ruby/environment_TEST.rb b/ruby/environment_TEST.rb
index dd76c4d5c..9da0eb17a 100644
--- a/ruby/environment_TEST.rb
+++ b/ruby/environment_TEST.rb
@@ -219,12 +219,6 @@ module Paludis
end
end
- class TestCase_EnvironmentDefaultDestinations < Test::Unit::TestCase
- def test_default_destinations
- assert_kind_of Array, env.default_destinations
- end
- end
-
class TestCase_EnvironmentDistribution < Test::Unit::TestCase
def env
NoConfigEnvironment.new(Dir.getwd().to_s + "/environment_TEST_dir/testrepo")
@@ -236,16 +230,6 @@ module Paludis
end
end
- class TestCase_EnvironmentDefaultDestinations < Test::Unit::TestCase
- def env
- NoConfigEnvironment.new(Dir.getwd().to_s + "/environment_TEST_dir/testrepo")
- end
-
- def test_default_destinations
- assert_kind_of Array, env.default_destinations
- end
- end
-
class TestCase_EnvironmentSetAcceptUnstable < Test::Unit::TestCase
def env
NoConfigEnvironment.new(Dir.getwd().to_s + "/environment_TEST_dir/testrepo")