[gnoduino] Removed destructor from File.cpp and SD.h as it leads to unexpected close/destructed objects #814
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnoduino] Removed destructor from File.cpp and SD.h as it leads to unexpected close/destructed objects #814
- Date: Mon, 28 Apr 2014 22:48:27 +0000 (UTC)
commit b4e6b97d27dcecf63560898883b5886c1e4d2a49
Author: Cristian Maglie <c maglie bug st>
Date: Thu Oct 17 20:49:24 2013 +0200
Removed destructor from File.cpp and SD.h as it leads to unexpected close/destructed objects #814
libraries/SD/File.cpp | 5 -----
libraries/SD/SD.h | 1 -
2 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/libraries/SD/File.cpp b/libraries/SD/File.cpp
index c3021d6..6eee39a 100644
--- a/libraries/SD/File.cpp
+++ b/libraries/SD/File.cpp
@@ -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;
diff --git a/libraries/SD/SD.h b/libraries/SD/SD.h
index f21ec0f..7435cf5 100644
--- a/libraries/SD/SD.h
+++ b/libraries/SD/SD.h
@@ -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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]