diff options
| author | Romain Guy <romainguy@google.com> | 2012-05-21 12:13:31 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2012-05-21 13:29:06 -0700 |
| commit | 13b907353f18215b52b5ceda24bbf520d91d72a1 (patch) | |
| tree | 5b32cdf7b5729f68c0b61dadbeab7ffd263b25b0 /core/java/android/view/ViewGroup.java | |
| parent | d7e4ae48c576d5aaef75754b29a8b87c1f0d6427 (diff) | |
Remove unused, obsolete debug code
All these features have either been abandonned and left un-maintained
for years or can be replaced by systrace.
Change-Id: I42e4579a8078744047e5fe08a7a15254970b09bc
Diffstat (limited to 'core/java/android/view/ViewGroup.java')
| -rw-r--r-- | core/java/android/view/ViewGroup.java | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index b95ca5e3614f..421109f00c21 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -3949,10 +3949,6 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * the view hierarchy. */ public final void invalidateChild(View child, final Rect dirty) { - if (ViewDebug.TRACE_HIERARCHY) { - ViewDebug.trace(this, ViewDebug.HierarchyTraceType.INVALIDATE_CHILD); - } - ViewParent parent = this; final AttachInfo attachInfo = mAttachInfo; @@ -4045,10 +4041,6 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * does not intersect with this ViewGroup's bounds. */ public ViewParent invalidateChildInParent(final int[] location, final Rect dirty) { - if (ViewDebug.TRACE_HIERARCHY) { - ViewDebug.trace(this, ViewDebug.HierarchyTraceType.INVALIDATE_CHILD_IN_PARENT); - } - if ((mPrivateFlags & DRAWN) == DRAWN || (mPrivateFlags & DRAWING_CACHE_VALID) == DRAWING_CACHE_VALID) { if ((mGroupFlags & (FLAG_OPTIMIZE_INVALIDATE | FLAG_ANIMATION_DONE)) != @@ -4631,61 +4623,6 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager } /** - * @hide - */ - @Override - protected boolean dispatchConsistencyCheck(int consistency) { - boolean result = super.dispatchConsistencyCheck(consistency); - - final int count = mChildrenCount; - final View[] children = mChildren; - for (int i = 0; i < count; i++) { - if (!children[i].dispatchConsistencyCheck(consistency)) result = false; - } - - return result; - } - - /** - * @hide - */ - @Override - protected boolean onConsistencyCheck(int consistency) { - boolean result = super.onConsistencyCheck(consistency); - - final boolean checkLayout = (consistency & ViewDebug.CONSISTENCY_LAYOUT) != 0; - final boolean checkDrawing = (consistency & ViewDebug.CONSISTENCY_DRAWING) != 0; - - if (checkLayout) { - final int count = mChildrenCount; - final View[] children = mChildren; - for (int i = 0; i < count; i++) { - if (children[i].getParent() != this) { - result = false; - android.util.Log.d(ViewDebug.CONSISTENCY_LOG_TAG, - "View " + children[i] + " has no parent/a parent that is not " + this); - } - } - } - - if (checkDrawing) { - // If this group is dirty, check that the parent is dirty as well - if ((mPrivateFlags & DIRTY_MASK) != 0) { - final ViewParent parent = getParent(); - if (parent != null && !(parent instanceof ViewRootImpl)) { - if ((((View) parent).mPrivateFlags & DIRTY_MASK) == 0) { - result = false; - android.util.Log.d(ViewDebug.CONSISTENCY_LOG_TAG, - "ViewGroup " + this + " is dirty but its parent is not: " + this); - } - } - } - } - - return result; - } - - /** * {@inheritDoc} */ @Override |
