From d8e4cf0c558ef188fd613d34411819c02ae10168 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 21 Mar 2012 07:59:24 -0700 Subject: [PATCH] cleanup excessive logging --- .../eehouse/android/xw4/NBSInviteActivity.java | 16 ++-------------- .../src/org/eehouse/android/xw4/NBSListItem.java | 6 +----- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSInviteActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSInviteActivity.java index b73aa9378..eba0974bb 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSInviteActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSInviteActivity.java @@ -1,7 +1,7 @@ /* -*- compile-command: "cd ../../../../../; ant debug install"; -*- */ /* - * Copyright 2009-2011 by Eric House (xwords@eehouse.org). All - * rights reserved. + * Copyright 2012 by Eric House (xwords@eehouse.org). All rights + * reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -98,7 +98,6 @@ public class NBSInviteActivity extends InviteActivity { protected void clearSelected() { - DbgUtils.logf( "NBSInviteActivity.clearSelected()" ); ListView list = (ListView)findViewById( android.R.id.list ); int count = list.getChildCount(); for ( int ii = count - 1; ii >= 0; --ii ) { @@ -110,17 +109,9 @@ public class NBSInviteActivity extends InviteActivity { } saveState(); rebuildList(); - // int index = m_phones.size(); - // while ( index-- > 0 ) { - // if ( m_adapter.isChecked( index ) ) { - // m_phones.remove( index ); - // m_names.remove( index ); - // } - // } } protected String[] listSelected() { - DbgUtils.logf( "NBSInviteActivity.listSelected()" ); ListView list = (ListView)findViewById( android.R.id.list ); String[] result = new String[m_checkCount]; int count = list.getChildCount(); @@ -205,7 +196,6 @@ public class NBSInviteActivity extends InviteActivity { public Object getItem( int position ) { - DbgUtils.logf( "getItem called (phone %s)", m_phones.get(position) ); NBSListItem item = (NBSListItem)Utils.inflate( NBSInviteActivity.this, R.layout.nbsinviter_item ); @@ -223,8 +213,6 @@ public class NBSInviteActivity extends InviteActivity { public boolean isChecked( int index ) { boolean checked = m_items[index].isChecked(); - DbgUtils.logf( "item %d (for %s) checked: %b", - index, m_items[index].getNumber(), checked ); return checked; } } diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSListItem.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSListItem.java index 1f34a543f..681ee862a 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSListItem.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NBSListItem.java @@ -28,12 +28,10 @@ import android.util.AttributeSet; import android.widget.CompoundButton.OnCheckedChangeListener; public class NBSListItem extends LinearLayout { - private Context m_context; public NBSListItem( Context cx, AttributeSet as ) { super( cx, as ); - m_context = cx; } public void setContents( String name, String number ) @@ -59,9 +57,7 @@ public class NBSListItem extends LinearLayout { public boolean isChecked() { CheckBox cb = (CheckBox)findViewById( R.id.checkbox ); - boolean isChecked = cb.isChecked(); - DbgUtils.logf( "isChecked(%s)=>%b", getNumber(), isChecked ); - return isChecked; + return cb.isChecked(); } }