am 4c571a62: Fix the build.

Merge commit '4c571a62b1a4fb71585179bce84246b55097b47e' into gingerbread-plus-aosp

* commit '4c571a62b1a4fb71585179bce84246b55097b47e':
  Fix the build.
This commit is contained in:
Chung-yih Wang
2010-09-20 22:48:09 -07:00
committed by Android Git Automerger

View File

@@ -355,27 +355,6 @@ public final class CallManager {
return getFirstActiveRingingCall().getPhone(); return getFirstActiveRingingCall().getPhone();
} }
/**
* unregister phone from CallManager
* @param phone
*/
public void unregisterPhone(Phone phone) {
if (phone != null && mPhones.contains(phone)) {
mPhones.remove(phone);
mRingingCalls.remove(phone.getRingingCall());
mBackgroundCalls.remove(phone.getBackgroundCall());
mForegroundCalls.remove(phone.getForegroundCall());
unregisterForPhoneStates(phone);
if (phone == mDefaultPhone) {
if (mPhones.isEmpty()) {
mDefaultPhone = null;
} else {
mDefaultPhone = mPhones.get(0);
}
}
}
}
public void setAudioMode() { public void setAudioMode() {
Context context = getContext(); Context context = getContext();
if (context == null) return; if (context == null) return;