Skip to content

Commit e21b182

Browse files
committed
Removed destructor from File.cpp and SD.h as it leads to unexpected close/destructed objects #814
1 parent 72440e7 commit e21b182

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

libraries/SD/File.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ File::File(void) {
4343
//Serial.print("Created empty file object");
4444
}
4545

46-
File::~File(void) {
47-
close();
48-
// Serial.print("Deleted file object");
49-
}
50-
5146
// returns a pointer to the file name
5247
char *File::name(void) {
5348
return _name;

libraries/SD/SD.h

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class File : public Stream {
3131
public:
3232
File(SdFile f, const char *name); // wraps an underlying SdFile
3333
File(void); // 'empty' constructor
34-
~File(void); // destructor
3534
virtual size_t write(uint8_t);
3635
virtual size_t write(const uint8_t *buf, size_t size);
3736
virtual int read();

0 commit comments

Comments
 (0)