remove unused API to explicitly set/unset buffer silent flag
authorRobin Gareus <robin@gareus.org>
Sat, 28 Dec 2013 12:37:09 +0000 (13:37 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 28 Dec 2013 12:43:57 +0000 (13:43 +0100)
libs/ardour/ardour/buffer.h
libs/ardour/ardour/buffer_set.h
libs/ardour/buffer_set.cc

index 4570a7a66330b1ceddbbcae46b2bbca86eb17396..0d0f5d37584280544f39dc7cf0b32478668e5d31 100644 (file)
@@ -61,7 +61,6 @@ public:
        DataType type() const { return _type; }
 
        bool silent() const { return _silent; }
-       void set_is_silent(bool yn) { _silent = yn; }
 
        /** Reallocate the buffer used internally to handle at least @a size_t units of data.
         *
index 26d47682af6e69a511e6277445948c8f24e18147..5f8553218babeab8f02f2853af28f2728d8532e0 100644 (file)
@@ -86,7 +86,6 @@ public:
        const ChanCount& count() const { return _count; }
        ChanCount&       count()       { return _count; }
 
-       void set_is_silent(bool yn);
        void silence (framecnt_t nframes, framecnt_t offset);
        bool is_mirror() const { return _is_mirror; }
 
index 227d7a1e9553ff4aa562d9344201d553472f1075..9db99d20ce520eeced0825e2614b40a73ac1fe12 100644 (file)
@@ -468,16 +468,5 @@ BufferSet::silence (framecnt_t nframes, framecnt_t offset)
        }
 }
 
-void
-BufferSet::set_is_silent (bool yn)
-{
-       for (std::vector<BufferVec>::iterator i = _buffers.begin(); i != _buffers.end(); ++i) {
-               for (BufferVec::iterator b = i->begin(); b != i->end(); ++b) {
-                       (*b)->set_is_silent (yn);
-               }
-       }
-
-}
-
 } // namespace ARDOUR