/**
 * Copyright 2008 Joe LaPenna
 */

package com.joelapenna.foursquared.widget;

import com.joelapenna.foursquare.types.Group;
import com.joelapenna.foursquared.Foursquared;

import android.content.Context;
import android.util.Log;
import android.widget.BaseAdapter;

/**
 * @author Joe LaPenna (joe@joelapenna.com)
 */
abstract class BaseGroupAdapter<T> extends BaseAdapter {
    private static final String TAG = "BaseGroupAdapter";
    private static final boolean DEBUG = Foursquared.DEBUG;

    Group group;

    public BaseGroupAdapter(Context context, Group g) {
        group = g;
    }

    @Override
    public int getCount() {
        if (DEBUG) Log.d(TAG, "getCount called.");
        return group.size();
    }

    @Override
    public Object getItem(int position) {
        if (DEBUG) Log.d(TAG, "getItem() called: " + String.valueOf(position));
        return group.get(position);
    }

    @Override
    public boolean hasStableIds() {
        return true;
    }

    @Override
    public boolean isEmpty() {
        if (DEBUG) Log.d(TAG, "isEmpty() called");
        return group.isEmpty();
    }
}

@@ -125,55 +125,8 @@
 oup;
-%0Aimport com.joelapenna.foursquared.Foursquared;
 %0A%0Aim
@@ -159,33 +159,8 @@
 xt;%0A
-import android.util.Log;%0A
 impo
@@ -303,126 +303,8 @@
 er %7B
-%0A    private static final String TAG = %22BaseGroupAdapter%22;%0A    private static final boolean DEBUG = Foursquared.DEBUG;
 %0A%0A  
@@ -447,59 +447,8 @@
 ) %7B%0A
-        if (DEBUG) Log.d(TAG, %22getCount called.%22);%0A
     
@@ -539,88 +539,8 @@
 ) %7B%0A
-        if (DEBUG) Log.d(TAG, %22getItem() called: %22 + String.valueOf(position));%0A
     
@@ -662,32 +662,32 @@
 %0A%0A    @Override%0A
+
     public boole
@@ -705,59 +705,8 @@
 ) %7B%0A
-        if (DEBUG) Log.d(TAG, %22isEmpty() called%22);%0A
     

Remove excessive logging from BaseGroupAdapter.