diff options
author | 2011-06-11 21:42:38 +0100 | |
---|---|---|
committer | 2011-06-11 22:35:27 +0100 | |
commit | 213d61ac7e59b497355d13ab758b2dccd9d57792 (patch) | |
tree | 8ab68d5f8674fadfd1e7ef162f7502cdaeba932c /ruby | |
parent | a414de7b519ce27735b617bd6f0840a10a0bb1c3 (diff) | |
download | paludis-213d61ac7e59b497355d13ab758b2dccd9d57792.tar.gz paludis-213d61ac7e59b497355d13ab758b2dccd9d57792.tar.xz |
Remove stale QA code
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/paludis_ruby.cc | 27 | ||||
-rw-r--r-- | ruby/paludis_ruby.hh | 25 |
2 files changed, 1 insertions, 51 deletions
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 : |