Skip to content

Commit d533874

Browse files
committed
Remove now-unused private constructor
1 parent d56df88 commit d533874

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ File::File (char const *filename, uint8_t mode, Adafruit_LittleFS &fs)
5050
this->open(filename, mode);
5151
}
5252

53-
File::File (uint8_t differentiator, char const *filename, uint8_t mode, Adafruit_LittleFS &fs)
54-
: File(fs)
55-
{
56-
// private constructor calls private API _open(), which does NOT obtain the mutex
57-
(void)differentiator;
58-
this->_open(filename, mode);
59-
}
60-
61-
62-
6353
bool File::_open_file (char const *filepath, uint8_t mode)
6454
{
6555
int flags = (mode == FILE_O_READ) ? LFS_O_RDONLY :

libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ class File : public Stream
4444
File (Adafruit_LittleFS &fs);
4545
File (char const *filename, uint8_t mode, Adafruit_LittleFS &fs);
4646

47-
private:
48-
// openNextFile() needs a constructor that does NOT take the mutex.
49-
File (uint8_t differentiator, char const *filename, uint8_t mode, Adafruit_LittleFS &fs);
50-
5147
public:
5248

5349
bool open (char const *filename, uint8_t mode);

0 commit comments

Comments
 (0)