Delete useless (X) useful (O) code
最近遇到一個 Bug,讓我想到一個笑話:「我都不敢請假,因為怕發現老闆發現有沒有我都一樣。」 Patch 的標題是:" [NFC] delete useless code " 內容是移除下面紅色的那幾行 public void updateForShouldDefaultToObserveMode(int userId) { long token = Binder.clearCallingIdentity(); try { if (!android.nfc.Flags.nfcObserveMode()) { Log.d(TAG, "observe mode isn't enabled"); return; } NfcAdapter adapter = NfcAdapter.getDefaultAdapter(mContext); if (adapter == null) { Log.e(TAG, "adapter is null, returning"); return; } ComponentN...