Remove unused code.
authorCarl Hetherington <carl@carlh.net>
Mon, 31 Oct 2011 21:16:14 +0000 (21:16 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 31 Oct 2011 21:16:14 +0000 (21:16 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10354 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/audio_diskstream.h
libs/ardour/audio_diskstream.cc

index 94c843971bc22c71dfc678f6e52ebdf2f45634eb..88718921781c7c533b9ccec5f675f16643f3b771 100644 (file)
@@ -77,18 +77,6 @@ class AudioDiskstream : public Diskstream
        int set_non_layered (bool yn);
        bool can_become_destructive (bool& requires_bounce) const;
 
-       float peak_power(uint32_t n = 0) {
-               boost::shared_ptr<ChannelList> c = channels.reader();
-               ChannelInfo* chaninfo = (*c)[n];
-               float x = chaninfo->peak_power;
-               chaninfo->peak_power = 0.0f;
-               if (x > 0.0f) {
-                       return 20.0f * fast_log10(x);
-               } else {
-                       return minus_infinity();
-               }
-       }
-
        boost::shared_ptr<AudioPlaylist> audio_playlist () { return boost::dynamic_pointer_cast<AudioPlaylist>(_playlist); }
 
        int use_playlist (boost::shared_ptr<Playlist>);
@@ -194,8 +182,6 @@ class AudioDiskstream : public Diskstream
                Sample     *capture_wrap_buffer;
                Sample     *speed_buffer;
 
-               float       peak_power;
-
                boost::shared_ptr<AudioFileSource> write_source;
 
                /// information the Port that our audio data comes from
index a7c8558fdc7027aaeaa1dd26b74d1b1ef253ba16..6a7c12489ec25711f4c036102eff71d8a7eb1bcf 100644 (file)
@@ -2292,7 +2292,6 @@ AudioDiskstream::ChannelSource::ensure_monitor_input (bool yn) const
 
 AudioDiskstream::ChannelInfo::ChannelInfo (framecnt_t playback_bufsize, framecnt_t capture_bufsize, framecnt_t speed_size, framecnt_t wrap_size)
 {
-       peak_power = 0.0f;
        current_capture_buffer = 0;
        current_playback_buffer = 0;
        curr_capture_cnt = 0;