aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-26 17:13:33 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-26 17:13:33 +0000
commit98c87d68874da79170161f44dbdae852a202847e (patch)
treea749552ef671c0661a90c4a4e96c112e68cbc8d9
parent20c01151ac11bf6a8a95a42da4756446e486b9df (diff)
downloadpaludis-98c87d68874da79170161f44dbdae852a202847e.tar.gz
paludis-98c87d68874da79170161f44dbdae852a202847e.tar.xz
Remove some dead code
-rw-r--r--ruby/dep_atom.cc31
-rw-r--r--ruby/mask_reasons.cc1
2 files changed, 0 insertions, 32 deletions
diff --git a/ruby/dep_atom.cc b/ruby/dep_atom.cc
index a1363e4..5e83530 100644
--- a/ruby/dep_atom.cc
+++ b/ruby/dep_atom.cc
@@ -39,43 +39,12 @@ namespace
static VALUE c_string_dep_atom;
VALUE
- dep_atom_init_0(VALUE self)
- {
- return self;
- }
-
- VALUE
dep_atom_init_1(VALUE self, VALUE)
{
return self;
}
VALUE
- dep_atom_init_2(VALUE self, VALUE, VALUE)
- {
- return self;
- }
-
- VALUE
- use_dep_atom_new(VALUE self, VALUE pkg, VALUE inverse)
- {
- UseDepAtom::ConstPointer * ptr(0);
- try
- {
- ptr = new UseDepAtom::ConstPointer(new UseDepAtom(
- UseFlagName(StringValuePtr(pkg)), Qfalse != inverse && Qnil != inverse));
- VALUE tdata(Data_Wrap_Struct(self, 0, &Common<UseDepAtom::ConstPointer>::free, ptr));
- rb_obj_call_init(tdata, 2, &pkg);
- return tdata;
- }
- catch (const std::exception & e)
- {
- delete ptr;
- exception_to_ruby_exception(e);
- }
- }
-
- VALUE
block_dep_atom_new(VALUE self, VALUE atom)
{
BlockDepAtom::ConstPointer * ptr(0);
diff --git a/ruby/mask_reasons.cc b/ruby/mask_reasons.cc
index 1500159..6e7af35 100644
--- a/ruby/mask_reasons.cc
+++ b/ruby/mask_reasons.cc
@@ -85,7 +85,6 @@ namespace
MaskReasons * m_ptr;
Data_Get_Struct(self, MaskReasons, m_ptr);
return m_ptr->any() ? Qfalse : Qtrue;
- return self;
}
void do_register_mask_reasons()