summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/buffer.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-02-03 16:59:51 +0100
committerRobin Gareus <robin@gareus.org>2014-02-03 16:59:51 +0100
commit74385d7267756e4101e9ffd59e319da972e72a76 (patch)
tree818a75b783e031303eb825ef38343989f9a98912 /libs/ardour/ardour/buffer.h
parent592be26a248bacda5bbe72d2da9e8539e5ce3915 (diff)
remove cruft - unused _size in audio-buffers
Diffstat (limited to 'libs/ardour/ardour/buffer.h')
-rw-r--r--libs/ardour/ardour/buffer.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/libs/ardour/ardour/buffer.h b/libs/ardour/ardour/buffer.h
index 0d0f5d3758..87f7a90fc3 100644
--- a/libs/ardour/ardour/buffer.h
+++ b/libs/ardour/ardour/buffer.h
@@ -46,16 +46,9 @@ public:
/** Factory function */
static Buffer* create(DataType type, size_t capacity);
- /** Maximum capacity of buffer.
- * Note in some cases the entire buffer may not contain valid data, use size. */
+ /** Maximum capacity of buffer. */
size_t capacity() const { return _capacity; }
- /** Amount of valid data in buffer. Use this over capacity almost always. */
- size_t size() const { return _size; }
-
- /** Return true if the buffer contains no data, false otherwise */
- virtual bool empty() const { return _size == 0; }
-
/** Type of this buffer.
* Based on this you can static cast a Buffer* to the desired type. */
DataType type() const { return _type; }
@@ -80,12 +73,11 @@ public:
protected:
Buffer(DataType type)
- : _type(type), _capacity(0), _size(0), _silent (true)
+ : _type(type), _capacity(0), _silent (true)
{}
DataType _type;
pframes_t _capacity;
- pframes_t _size;
bool _silent;
};