From c1f18a164d4d94acb177343d2bd864a5e67c1136 Mon Sep 17 00:00:00 2001 From: Frederic Merizen Date: Wed, 10 Oct 2018 05:21:50 +0200 Subject: [PATCH] Remove dead, buggy code --- app/facades/dossier_facades.rb | 4 ---- app/models/dossier.rb | 4 ---- 2 files changed, 8 deletions(-) diff --git a/app/facades/dossier_facades.rb b/app/facades/dossier_facades.rb index 5fbe5ae7f..3e73def9e 100644 --- a/app/facades/dossier_facades.rb +++ b/app/facades/dossier_facades.rb @@ -17,10 +17,6 @@ class DossierFacades @dossier.etablissement end - def pieces_justificatives - @dossier.ordered_pieces_justificatives - end - def types_de_pieces_justificatives @dossier.types_de_piece_justificative.order('order_place ASC') end diff --git a/app/models/dossier.rb b/app/models/dossier.rb index 8da633957..49078dd1e 100644 --- a/app/models/dossier.rb +++ b/app/models/dossier.rb @@ -118,10 +118,6 @@ class Dossier < ApplicationRecord end end - def ordered_pieces_justificatives - champs.joins(', types_de_piece_justificative').where("pieces_justificatives.type_de_piece_justificative_id = types_de_piece_justificative.id AND types_de_piece_justificative.procedure_id = #{procedure.id}").order('order_place ASC') - end - def en_construction_ou_instruction? EN_CONSTRUCTION_OU_INSTRUCTION.include?(state) end