diff options
author | 2011-06-11 21:42:38 +0100 | |
---|---|---|
committer | 2011-06-11 22:35:27 +0100 | |
commit | 213d61ac7e59b497355d13ab758b2dccd9d57792 (patch) | |
tree | 8ab68d5f8674fadfd1e7ef162f7502cdaeba932c | |
parent | a414de7b519ce27735b617bd6f0840a10a0bb1c3 (diff) | |
download | paludis-213d61ac7e59b497355d13ab758b2dccd9d57792.tar.gz paludis-213d61ac7e59b497355d13ab758b2dccd9d57792.tar.xz |
Remove stale QA code
-rwxr-xr-x | python/repository_TEST.py | 22 | ||||
-rw-r--r-- | ruby/paludis_ruby.cc | 27 | ||||
-rw-r--r-- | ruby/paludis_ruby.hh | 25 |
3 files changed, 1 insertions, 73 deletions
diff --git a/python/repository_TEST.py b/python/repository_TEST.py index 85d82b7e1..3b4519c12 100755 --- a/python/repository_TEST.py +++ b/python/repository_TEST.py @@ -122,28 +122,6 @@ class TestCase_02_RepositoryInterfaces(unittest.TestCase): di = irepo.destination_interface self.assert_(isinstance(di, RepositoryDestinationInterface)) - def test_12_qa_interface(self): - if hasattr(paludis, "QAReporter"): - class PyQAR(QAReporter): - def __init__(self): - QAReporter.__init__(self) - self.messages = 0 - - def message(self, msg): - self.messages += 1 - - def status(self, msg): - return - - qi = repo.qa_interface - self.assert_(isinstance(qi, RepositoryQAInterface)) - - qr = PyQAR() - - qi.check_qa(qr, QACheckProperties(), QACheckProperties(), - QAMessageLevel.DEBUG, "repository_TEST_dir/testrepo") - self.assertEquals(qr.messages > 0, True) - class TestCase_03_FakeRepository(unittest.TestCase): def setUp(self): global e, f diff --git a/ruby/paludis_ruby.cc b/ruby/paludis_ruby.cc index cf749d216..a69ca2c44 100644 --- a/ruby/paludis_ruby.cc +++ b/ruby/paludis_ruby.cc @@ -401,30 +401,3 @@ paludis::ruby::match_package_options_to_value(const MatchPackageOptions & o) return a; } -#ifdef ENABLE_RUBY_QA -paludis::ruby::RubyQAReporter::RubyQAReporter(VALUE* ruby_reporter) -{ - this->reporter = ruby_reporter; -} - -void -paludis::ruby::RubyQAReporter::message(const QAMessage & msg) -{ - try - { - ID message_id = rb_intern("message"); - VALUE msg_val = qa_message_to_value(msg); - rb_funcall(*(this->reporter), message_id, 1, msg_val); - } - catch (const std::exception & e) - { - exception_to_ruby_exception(e); - } -} - -void -paludis::ruby::RubyQAReporter::status(const std::string &) -{ -} -#endif - diff --git a/ruby/paludis_ruby.hh b/ruby/paludis_ruby.hh index aab1fb1c4..15130e617 100644 --- a/ruby/paludis_ruby.hh +++ b/ruby/paludis_ruby.hh @@ -42,10 +42,6 @@ #include <paludis/util/stringify.hh> #include <paludis/util/hashes.hh> -#ifdef ENABLE_RUBY_QA -#include <paludis/qa.hh> -#endif - #include <ruby.h> #define RUBY_FUNC_CAST(x) reinterpret_cast<VALUE (*)(...)>(x) @@ -57,19 +53,6 @@ namespace paludis namespace ruby { - -#ifdef ENABLE_RUBY_QA - class RubyQAReporter : public QAReporter - { - VALUE* reporter; - - public: - RubyQAReporter(VALUE*); - void message(const QAMessage &); - void status(const std::string &); - }; -#endif - /* general utilities */ void exception_to_ruby_exception(const std::exception &) PALUDIS_ATTRIBUTE((noreturn)); @@ -90,9 +73,7 @@ namespace paludis VALUE generator_to_value(const Generator &); VALUE filter_to_value(const Filter &); VALUE filtered_generator_to_value(const FilteredGenerator &); -#ifdef ENABLE_RUBY_QA - VALUE qa_message_to_value(const QAMessage &); -#endif + template <typename T_> VALUE dep_tree_to_value(const std::shared_ptr<const T_> &); template <typename T_> std::shared_ptr<const T_> value_to_dep_tree(VALUE); VALUE package_dep_spec_to_value(const PackageDepSpec &); @@ -138,10 +119,6 @@ namespace paludis VALUE * pretend_fetch_action_value_ptr(); VALUE * dependencies_labels_dep_spec_value_ptr(); -#ifdef ENABLE_RUBY_QA - QACheckProperties value_to_qa_check_properties(VALUE); -#endif - /* registration */ class RegisterRubyClass : |