tech(clean): remove dead code

This commit is contained in:
Martin 2024-02-07 17:30:20 +01:00
parent 3e64a3bbbc
commit 56ed901703
2 changed files with 0 additions and 16 deletions

View file

@ -740,17 +740,6 @@ class Dossier < ApplicationRecord
procedure.duree_conservation_dossiers_dans_ds + (conservation_extension / 1.month.to_i)
end
def avis_for_instructeur(instructeur)
if instructeur.dossiers.include?(self)
avis.order(created_at: :asc)
else
avis
.where(confidentiel: false)
.or(avis.where(claimant: instructeur))
.order(created_at: :asc)
end
end
def avis_for_expert(expert)
Avis
.where(dossier_id: id, confidentiel: false)