OSDN Git Service

Remove dead code
authorGlenn Kasten <gkasten@google.com>
Thu, 15 Dec 2011 17:53:12 +0000 (09:53 -0800)
committerGlenn Kasten <gkasten@google.com>
Mon, 19 Dec 2011 23:55:47 +0000 (15:55 -0800)
Change-Id: Icf23f7f90fdeb660f4015f22cf239e6d05f5d03c

services/audioflinger/AudioMixer.cpp
services/audioflinger/AudioMixer.h

index 7c7fa56..1c5796d 100644 (file)
@@ -1115,6 +1115,7 @@ void AudioMixer::process__OneTrack16BitsStereoNoResampling(state_t* state)
     }
 }
 
+#if 0
 // 2 tracks is also a common case
 // NEVER used in current implementation of process__validate()
 // only use if the 2 tracks have the same output buffer
@@ -1212,7 +1213,7 @@ void AudioMixer::process__TwoTracks16BitsStereoNoResampling(state_t* state)
         delete [] buff;
     }
 }
+#endif
 
 // ----------------------------------------------------------------------------
 }; // namespace android
-
index 75c9170..f0bc9e8 100644 (file)
@@ -117,11 +117,6 @@ private:
         NEEDS_AUX_ENABLED      = 0x00010000,
     };
 
-    static inline int32_t applyVolume(int32_t in, int32_t v) {
-        return in * v;
-    }
-
-
     struct state_t;
     struct track_t;
 
@@ -201,7 +196,9 @@ private:
     static void process__genericNoResampling(state_t* state);
     static void process__genericResampling(state_t* state);
     static void process__OneTrack16BitsStereoNoResampling(state_t* state);
+#if 0
     static void process__TwoTracks16BitsStereoNoResampling(state_t* state);
+#endif
 };
 
 // ----------------------------------------------------------------------------