Skip to content

Commit

Permalink
Remove unused FileStream method
Browse files Browse the repository at this point in the history
Opening on directory handle removed in SmingHub#2308
  • Loading branch information
mikee47 committed Feb 13, 2022
1 parent b34a80f commit e5a559d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions Sming/Core/Data/Stream/FileStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
9 changes: 0 additions & 9 deletions Sming/Core/Data/Stream/IFS/FileStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e5a559d

Please sign in to comment.