summaryrefslogtreecommitdiff
path: root/src/lib/corelib/tools/filetime_unix.cpp
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-11-30 16:55:41 -0800
committerJake Petroules <jake.petroules@qt.io>2017-01-05 10:18:09 +0000
commitbaec0aca42f4d11feb264af411a5e770a53b0e67 (patch)
tree782883f48bddee63956b09dacfaf686ea4b4bbde /src/lib/corelib/tools/filetime_unix.cpp
parent88f6c8aefc377b3b0b121bf27c6b33760ca157a8 (diff)
downloadqbs-baec0aca42f4d11feb264af411a5e770a53b0e67.tar.gz
Combine filetime_win.cpp and filetime_unix.cpp
There's no real reason for these to be separated. Change-Id: I3b82cccf9889dd25d28e1c0f66fe8d645c4ee8e2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/tools/filetime_unix.cpp')
-rw-r--r--src/lib/corelib/tools/filetime_unix.cpp88
1 files changed, 0 insertions, 88 deletions
diff --git a/src/lib/corelib/tools/filetime_unix.cpp b/src/lib/corelib/tools/filetime_unix.cpp
deleted file mode 100644
index 5e9c64fc2..000000000
--- a/src/lib/corelib/tools/filetime_unix.cpp
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qbs.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "filetime.h"
-
-#include <QtCore/qdatetime.h>
-#include <QtCore/qstring.h>
-
-#include <time.h>
-
-namespace qbs {
-namespace Internal {
-
-FileTime::FileTime()
- : m_fileTime(0)
-{
-}
-
-bool FileTime::operator < (const FileTime &rhs) const
-{
- return m_fileTime < rhs.m_fileTime;
-}
-
-void FileTime::clear()
-{
- m_fileTime = 0;
-}
-
-bool FileTime::isValid() const
-{
- return m_fileTime != 0;
-}
-
-FileTime FileTime::currentTime()
-{
- return time(0);
-}
-
-FileTime FileTime::oldestTime()
-{
- return 1;
-}
-
-QString FileTime::toString() const
-{
- QDateTime dt;
- dt.setTime_t(m_fileTime);
- return dt.toString();
-}
-
-} // namespace Internal
-} // namespace qbs