From 46615725b549a00e559516a772d4a5b2ea8c4ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Tue, 30 Jun 2015 22:22:00 +0300 Subject: [PATCH] Move FileSystem::defaultFileSystem to GUI. --- src/fs/filesystem.cpp | 7 ------- src/ops/newoperation.cpp | 1 - 2 files changed, 8 deletions(-) diff --git a/src/fs/filesystem.cpp b/src/fs/filesystem.cpp index 29e5d9e..ce2a2e0 100644 --- a/src/fs/filesystem.cpp +++ b/src/fs/filesystem.cpp @@ -23,8 +23,6 @@ #include #include -#include - /** Creates a new FileSystem object @param firstsector the first sector used by this FileSystem on the Device @param lastsector the last sector used by this FileSystem on the Device @@ -385,11 +383,6 @@ bool FileSystem::findExternal(const QString& cmdName, const QStringList& args, i return cmd.exitCode() == 0 || cmd.exitCode() == expectedCode; } -FileSystem::Type FileSystem::defaultFileSystem() -{ - return static_cast(Config::defaultFileSystem()); -} - bool FileSystem::supportToolFound() const { return false; diff --git a/src/ops/newoperation.cpp b/src/ops/newoperation.cpp index 762bf67..e6d2fa4 100644 --- a/src/ops/newoperation.cpp +++ b/src/ops/newoperation.cpp @@ -124,7 +124,6 @@ Partition* NewOperation::createNew(const Partition& cloneFrom) Partition* p = new Partition(cloneFrom); p->deleteFileSystem(); - p->setFileSystem(FileSystemFactory::create(FileSystem::defaultFileSystem(), p->firstSector(), p->lastSector())); p->setState(Partition::StateNew); p->setPartitionPath(QString());