Skip to content
Browse files

clean old code

  • Loading branch information...
1 parent 45834a1 commit 865857a33e8bb73cf3767bd8ed57858e648bb917 @humbhenri committed May 16, 2012
Showing with 0 additions and 19 deletions.
  1. +0 −17 timespan.cpp
  2. +0 −2 timespan.h
View
17 timespan.cpp
@@ -136,23 +136,6 @@ TimeSpan& TimeSpan::operator =(const TimeSpan & other)
return *this;
}
-QDomElement TimeSpan::toNode(QDomDocument & d)
-{
- QDomElement node = d.createElement("timeSpan");
- node.setAttribute("start", start.toString(DateFormat));
- node.setAttribute("end", end.toString(DateFormat));
- return node;
-}
-
-TimeSpan * TimeSpan::fromNode(const QDomElement &e)
-{
- if (!e.isNull() && e.tagName() == "timeSpan") {
- return new TimeSpan(QDateTime::fromString(e.attribute("start", ""), DateFormat),
- QDateTime::fromString(e.attribute("end", ""), DateFormat));
- }
- return new TimeSpan(QDateTime::currentDateTime(), QDateTime::currentDateTime());
-}
-
bool TimeSpan::operator ==(const TimeSpan &other)
{
return this->start == other.start &&
View
2 timespan.h
@@ -64,8 +64,6 @@ class TimeSpan : public QObject
inline QDateTime getEnd() const { return end; }
inline void setStart(QDateTime other) { start = other; }
inline void setEnd(QDateTime other) { end = other; }
- QDomElement toNode(QDomDocument &d);
- static TimeSpan * fromNode(const QDomElement & e);
bool save (QVariant projectId);
static QVector<TimeSpan*> findAllByDate(const QDate & date);
private:

0 comments on commit 865857a

Please sign in to comment.
Something went wrong with that request. Please try again.