mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Removed destructor from File.cpp and SD.h as it leads to unexpected close/destructed objects #814
This commit is contained in:
parent
72440e7893
commit
e21b182af2
@ -43,11 +43,6 @@ File::File(void) {
|
||||
//Serial.print("Created empty file object");
|
||||
}
|
||||
|
||||
File::~File(void) {
|
||||
close();
|
||||
// Serial.print("Deleted file object");
|
||||
}
|
||||
|
||||
// returns a pointer to the file name
|
||||
char *File::name(void) {
|
||||
return _name;
|
||||
|
@ -31,7 +31,6 @@ class File : public Stream {
|
||||
public:
|
||||
File(SdFile f, const char *name); // wraps an underlying SdFile
|
||||
File(void); // 'empty' constructor
|
||||
~File(void); // destructor
|
||||
virtual size_t write(uint8_t);
|
||||
virtual size_t write(const uint8_t *buf, size_t size);
|
||||
virtual int read();
|
||||
|
Loading…
x
Reference in New Issue
Block a user