From ab18c6d0c7b24b479e9d8f0973e376a04d5b3f1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?=
 <rafael.carre@savoirfairelinux.com>
Date: Tue, 9 Aug 2011 18:32:24 -0400
Subject: [PATCH] audiolayer::putMain() : remove unused func

---
 sflphone-common/src/audio/audiolayer.cpp           | 7 -------
 sflphone-common/src/audio/audiolayer.h             | 8 --------
 sflphone-common/src/audio/pulseaudio/audiostream.h | 8 --------
 3 files changed, 23 deletions(-)

diff --git a/sflphone-common/src/audio/audiolayer.cpp b/sflphone-common/src/audio/audiolayer.cpp
index 14b9f0d3ca..330a7858fa 100644
--- a/sflphone-common/src/audio/audiolayer.cpp
+++ b/sflphone-common/src/audio/audiolayer.cpp
@@ -55,13 +55,6 @@ void AudioLayer::putUrgent (void* buffer, int toCopy)
     _urgentRingBuffer.Put (buffer, toCopy);
 }
 
-int AudioLayer::putMain (void *buffer, int toCopy, std::string call_id)
-{
-    ost::MutexLock guard (_mutex);
-
-    return getMainBuffer()->putData (buffer, toCopy, call_id);
-}
-
 void AudioLayer::notifyincomingCall()
 {
     // Notify (with a beep) an incoming call when there is already a call
diff --git a/sflphone-common/src/audio/audiolayer.h b/sflphone-common/src/audio/audiolayer.h
index 3bbeeb59bd..eb83ed7ffd 100644
--- a/sflphone-common/src/audio/audiolayer.h
+++ b/sflphone-common/src/audio/audiolayer.h
@@ -137,14 +137,6 @@ class AudioLayer
          */
         void putUrgent (void* buffer, int toCopy);
 
-        /**
-         * Put voice data in the main sound buffer
-         * @param buffer    The buffer containing the voice data ()
-         * @param toCopy    The size of the buffer
-         * @return int      The number of bytes copied
-         */
-        int putMain (void* buffer, int toCopy, std::string call_id = default_id);
-
         void flushMain (void);
 
         void flushUrgent (void);
diff --git a/sflphone-common/src/audio/pulseaudio/audiostream.h b/sflphone-common/src/audio/pulseaudio/audiostream.h
index 1af25cab93..00d405efaf 100644
--- a/sflphone-common/src/audio/pulseaudio/audiostream.h
+++ b/sflphone-common/src/audio/pulseaudio/audiostream.h
@@ -74,14 +74,6 @@ public:
 	 */
 	~AudioStream();
 
-	/**
-	 * Write data to the main abstraction ring buffer.
-	 * @param buffer The buffer containing the data to be played
-	 * @param toCopy The number of samples, in bytes
-	 * @return int The number of bytes played
-	 */
-	int putMain(void* buffer, int toCopy);
-
 	/**
 	 * Write data to the urgent abstraction ring buffer. ( dtmf , double calls )
 	 * @param buffer The buffer containing the data to be played
-- 
GitLab