aboutsummaryrefslogtreecommitdiff
path: root/src/client/Model
diff options
context:
space:
mode:
authorJoris2015-09-04 23:13:48 +0200
committerJoris2015-09-04 23:13:48 +0200
commitc876fd8c2f1aac2c3fe10c2b7de734f3ef71b71f (patch)
tree23ff6a85ee81a0cc8419b7c1acbec0a33bd02fab /src/client/Model
parentc1f44a5890fbb26faf6f17c676662ea1bd495f2e (diff)
Paging model works with both payments addition and deletion
Diffstat (limited to 'src/client/Model')
-rw-r--r--src/client/Model/Payment.elm4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/client/Model/Payment.elm b/src/client/Model/Payment.elm
index 02dcf7e..88063b4 100644
--- a/src/client/Model/Payment.elm
+++ b/src/client/Model/Payment.elm
@@ -5,7 +5,6 @@ module Model.Payment
, PaymentId
, PaymentWithId
, paymentsDecoder
- , addPayment
, removePayment
) where
@@ -50,8 +49,5 @@ paymentIdDecoder = Json.string
dateDecoder : Json.Decoder Date
dateDecoder = Json.customDecoder Json.string Date.fromString
-addPayment : Payments -> (PaymentId, Payment) -> Payments
-addPayment payments (paymentId, payment) = Dict.insert paymentId payment payments
-
removePayment : Payments -> PaymentId -> Payments
removePayment payments paymentId = Dict.remove paymentId payments