From 831e1db277314c2bb9d87b67776d39941097f108 Mon Sep 17 00:00:00 2001
From: Marco Matthies <71844+marcom@users.noreply.github.com>
Date: Tue, 25 Feb 2025 19:02:42 +0100
Subject: [PATCH] Remove unneeded commented-out code

---
 src/crop/cropmodels.jl | 41 -----------------------------------------
 1 file changed, 41 deletions(-)

diff --git a/src/crop/cropmodels.jl b/src/crop/cropmodels.jl
index f5ec6d0..daabf5f 100644
--- a/src/crop/cropmodels.jl
+++ b/src/crop/cropmodels.jl
@@ -70,44 +70,3 @@ function initfields!(model::SimulationModel)
 
     @info "Initialised $(length(model.farmplots)) farm plots."
 end
-
-# # TODO: this function should be moved to the individual crop models,
-# # and overloaded on the type of cropstate (see notes above)
-# """
-#     setsoiltype!(farmplot, soiltype, model)
-# """
-# function setsoiltype!(farmplot::FarmPlot, soiltype::SoilType, model::SimulationModel)
-#     farmplot.soiltype = soiltype
-#     if @param(crop.cropmodel) == "aquacrop"
-#         farmplot.cropstate.soiltype = soiltype
-#     else
-#         # do nothing for other cropmodels
-#     end
-# end
-
-# # TODO: move this function to individual crop model files
-# """
-#     makecropstate(model, soiltype)
-#
-# An internal utility function to initialise one instance of the configured crop growth model.
-# """
-# function makecropstate(model::SimulationModel, soiltype::SoilType)
-#     if @param(crop.cropmodel) == "almass"
-#         phase = (month(model.date) < 3 ? ALMaSS.janfirst : ALMaSS.marchfirst)
-#         cs = ALMaSS.CropState(
-#             croptype = model.crops["natural grass"],
-#             phase = phase,
-#         )
-#     elseif @param(crop.cropmodel) == "simple"
-#         cs = SimpleCrop.CropState(
-#             model.crops["natural grass"],
-#             0.0m
-#         )
-#     elseif @param(crop.cropmodel) == "aquacrop"
-#         croptype = model.crops["natural grass"]
-#         cs = AquaCropWrapper.CropState(croptype, soiltype, model)
-#     else
-#         Base.error("Unhandled crop model '$(@param(crop.cropmodel))' in makecropstate().")
-#     end
-#     return cs
-# end
-- 
GitLab