From bc513cd6493644edcdd7f3f97522a22d15908a1d Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Tue, 22 Jul 2014 15:42:03 +0200 Subject: [PATCH] Remove superfluous methods --- lib/api/v3/work_packages/relation_model.rb | 4 ---- lib/api/v3/work_packages/relation_representer.rb | 9 --------- 2 files changed, 13 deletions(-) diff --git a/lib/api/v3/work_packages/relation_model.rb b/lib/api/v3/work_packages/relation_model.rb index 117e013da4..6d106e35b8 100644 --- a/lib/api/v3/work_packages/relation_model.rb +++ b/lib/api/v3/work_packages/relation_model.rb @@ -47,10 +47,6 @@ module API def delay=(value) model.delay = value end - - # def type - # model.relation_type - # end end end end diff --git a/lib/api/v3/work_packages/relation_representer.rb b/lib/api/v3/work_packages/relation_representer.rb index 8f5e7a1073..c6db1aed61 100644 --- a/lib/api/v3/work_packages/relation_representer.rb +++ b/lib/api/v3/work_packages/relation_representer.rb @@ -70,18 +70,9 @@ module API private - def related_work_package - if represented.model.from == @work_package - represented.model.to - else - represented.model.from - end - end - def relation_type represented.model.relation_type_for(@work_package).camelize end - end end end