Robert Murrell / Sketchlet

Files at this revision

API Documentation at this revision

Comitter:
aerialspecs
Date:
Fri Jan 20 15:10:27 2017 +0000
Parent:
2:82fa1c7a259f
Commit message:
Removed default constructor from ArrayList. Embedded environment is too constrained to allow for arbitrary sizing.

Changed in this revision

ArrayList.h Show annotated file Show diff for this revision Revisions of this file
ArrayList.hpp Show annotated file Show diff for this revision Revisions of this file
--- a/ArrayList.h	Fri Jan 20 15:07:53 2017 +0000
+++ b/ArrayList.h	Fri Jan 20 15:10:27 2017 +0000
@@ -41,11 +41,6 @@
 class ArrayList {
 public:
     /**
-     * \brief Default Constructor. Creates an ArrayList with an array size of 4.
-     */
-    ArrayList();
-
-    /**
      * \brief Creates a new ArrayList with an array size specified by usize.
      *
      * \param usize An unsigned byte specifying the array size, or the maximum number
--- a/ArrayList.hpp	Fri Jan 20 15:07:53 2017 +0000
+++ b/ArrayList.hpp	Fri Jan 20 15:10:27 2017 +0000
@@ -27,12 +27,6 @@
 namespace mbed {
 namespace sketchlet {
 
-template <class T> ArrayList<T>::ArrayList() {
-    this->usize     = ARRAYLIST_DEFAULT_SIZE;
-    this->elements  = new T[this->usize];
-    this->index     = 0;
-}
-
 template <class T> ArrayList<T>::ArrayList(uint8_t usize) {
     this->usize     = usize;
     this->elements  = new T[this->usize];