Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f0033d2 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Remove dead code in libmedia"

parents 1879fff0 d4070955
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -72,12 +72,6 @@ public:
        };
    };

    /* These are static methods to control the system-wide AudioFlinger
     * only privileged processes can have access to them
     */

//    static status_t setMasterMute(bool mute);

    /* As a convenience, if a callback is supplied, a handler thread
     * is automatically created with the appropriate priority. This thread
     * invokes the callback when a new buffer becomes ready or an overrun condition occurs.
@@ -330,7 +324,6 @@ private:
        friend class AudioRecord;
        virtual bool        threadLoop();
        virtual status_t    readyToRun();
        virtual void        onFirstRef() {}
        AudioRecord& mReceiver;
    };

+0 −2
Original line number Diff line number Diff line
@@ -472,8 +472,6 @@ protected:
    private:
        friend class AudioTrack;
        virtual bool        threadLoop();
        virtual status_t    readyToRun();
        virtual void        onFirstRef();
        AudioTrack& mReceiver;
        ~AudioTrackThread();
        Mutex               mMyLock;    // Thread::mLock is private
+0 −2
Original line number Diff line number Diff line
@@ -142,8 +142,6 @@ private:
    private:
        friend class Visualizer;
        virtual bool        threadLoop();
        virtual status_t    readyToRun();
        virtual void        onFirstRef();
        Visualizer& mReceiver;
        Mutex       mLock;
        uint32_t mSleepTimeUs;
+0 −9
Original line number Diff line number Diff line
@@ -1472,15 +1472,6 @@ bool AudioTrack::AudioTrackThread::threadLoop()
    return true;
}

status_t AudioTrack::AudioTrackThread::readyToRun()
{
    return NO_ERROR;
}

void AudioTrack::AudioTrackThread::onFirstRef()
{
}

void AudioTrack::AudioTrackThread::requestExit()
{
    // must be in this order to avoid a race condition
+0 −9
Original line number Diff line number Diff line
@@ -353,13 +353,4 @@ bool Visualizer::CaptureThread::threadLoop()
    return false;
}

status_t Visualizer::CaptureThread::readyToRun()
{
    return NO_ERROR;
}

void Visualizer::CaptureThread::onFirstRef()
{
}

}; // namespace android