[PATCH 04/13] Remove useless variable (#3).

Vincent Ordy vincent at ordy.net
Thu Jun 17 18:19:08 CEST 2010


---
 kmymoney/widgets/kmymoneycalendar.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/kmymoney/widgets/kmymoneycalendar.cpp b/kmymoney/widgets/kmymoneycalendar.cpp
index 941b250..79cd936 100644
--- a/kmymoney/widgets/kmymoneycalendar.cpp
+++ b/kmymoney/widgets/kmymoneycalendar.cpp
@@ -697,11 +697,10 @@ bool kMyMoneyCalendar::hasCloseButton() const
 int kMyMoneyCalendar::weekOfYear(const QDate& date)
 {
   // Calculate ISO 8601 week number (taken from glibc/Gnumeric)
-  int year, week, wday, jan1wday, nextjan1wday;
+  int year, week, jan1wday, nextjan1wday;
   QDate jan1date, nextjan1date;
 
   year = date.year();
-  wday = date.dayOfWeek();
 
   jan1date = QDate(year, 1, 1);
   jan1wday = jan1date.dayOfWeek();
-- 
1.7.1


--------------060703030708080806090607
Content-Type: text/x-diff;
 name="0005-Remove-useless-variable-4.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0005-Remove-useless-variable-4.patch"



More information about the KMyMoney-devel mailing list