diff options
author | 2011-03-18 20:16:51 +0000 | |
---|---|---|
committer | 2011-03-18 20:16:51 +0000 | |
commit | a49d3cfd8e98328400f60a4b7f064021574f1a73 (patch) | |
tree | 60124bfc9851d11530d398f20bc5eee2893a9927 /ruby | |
parent | d2eb3cd9f4b5e7fbf757e6101fe0d40a91d5f990 (diff) | |
download | paludis-a49d3cfd8e98328400f60a4b7f064021574f1a73.tar.gz paludis-a49d3cfd8e98328400f60a4b7f064021574f1a73.tar.xz |
Remove NoConfigEnvironment::set_accept_unstable
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/environment.cc | 14 | ||||
-rw-r--r-- | ruby/environment_TEST.rb | 14 |
2 files changed, 0 insertions, 28 deletions
diff --git a/ruby/environment.cc b/ruby/environment.cc index 8d9d9b860..6f86ab004 100644 --- a/ruby/environment.cc +++ b/ruby/environment.cc @@ -415,19 +415,6 @@ namespace /* * call-seq: - * accept_unstable=(true or false) - * - * Should we accept unstable keywords? - */ - VALUE - no_config_environment_set_accept_unstable(VALUE self, VALUE unstable) - { - value_to_no_config_environment(self)->set_accept_unstable(!(Qfalse == unstable || Qnil == unstable)); - return Qnil; - } - - /* - * call-seq: * create(spec) -> Environment * * Create an environment from the given spec. @@ -498,7 +485,6 @@ namespace rb_define_method(c_no_config_environment, "initialize", RUBY_FUNC_CAST(&no_config_environment_init), -1); rb_define_method(c_no_config_environment, "main_repository", RUBY_FUNC_CAST(&no_config_environment_main_repository), 0); rb_define_method(c_no_config_environment, "master_repository", RUBY_FUNC_CAST(&no_config_environment_master_repository), 0); - rb_define_method(c_no_config_environment, "accept_unstable=", RUBY_FUNC_CAST(&no_config_environment_set_accept_unstable), 1); /* * Document-class: Paludis::TestEnvironment diff --git a/ruby/environment_TEST.rb b/ruby/environment_TEST.rb index 9da0eb17a..536850dac 100644 --- a/ruby/environment_TEST.rb +++ b/ruby/environment_TEST.rb @@ -230,20 +230,6 @@ module Paludis end end - class TestCase_EnvironmentSetAcceptUnstable < Test::Unit::TestCase - def env - NoConfigEnvironment.new(Dir.getwd().to_s + "/environment_TEST_dir/testrepo") - end - - def test_set_accept_unstable - assert_respond_to env, :accept_unstable= - assert_nothing_raised do - env.accept_unstable=true - env.accept_unstable=false - end - end - end - class TestCase_EnvironmentMirrors < Test::Unit::TestCase def env @env or @env = EnvironmentFactory.instance.create("") |