From e5a559d0e7450a219f5d07213babc623e9584dea Mon Sep 17 00:00:00 2001 From: mikee47 Date: Sat, 12 Feb 2022 21:31:03 +0000 Subject: [PATCH] Remove unused FileStream method Opening on directory handle removed in #2308 --- Sming/Core/Data/Stream/FileStream.h | 5 ----- Sming/Core/Data/Stream/IFS/FileStream.h | 9 --------- 2 files changed, 14 deletions(-) diff --git a/Sming/Core/Data/Stream/FileStream.h b/Sming/Core/Data/Stream/FileStream.h index 1e03feeef3..013ebf7de0 100644 --- a/Sming/Core/Data/Stream/FileStream.h +++ b/Sming/Core/Data/Stream/FileStream.h @@ -33,10 +33,5 @@ class FileStream : public IFS::FileStream open(fileName, openFlags); } - FileStream(DirHandle dir, const String& name, FileOpenFlags openFlags = File::ReadOnly) : FileStream() - { - open(dir, name, openFlags); - } - using IFS::FileStream::attach; }; diff --git a/Sming/Core/Data/Stream/IFS/FileStream.h b/Sming/Core/Data/Stream/IFS/FileStream.h index 567c24e118..faffccab92 100644 --- a/Sming/Core/Data/Stream/IFS/FileStream.h +++ b/Sming/Core/Data/Stream/IFS/FileStream.h @@ -43,15 +43,6 @@ class FileStream : public FsBase, public ReadWriteStream */ bool open(const String& fileName, IFS::OpenFlags openFlags = OpenFlag::Read); - /** @brief Open a file and attach this stream object to it - * @param dir Location of file - * @param fileName Name of file - * @param openFlags - * @retval bool true on success, false on error - * @note call getLastError() to determine cause of failure - */ - bool open(DirHandle dir, const String& name, OpenFlags openFlags = OpenFlag::Read); - /** @brief Close file */ void close();