From 3b6c92cfb25eb5ec810d6c683359ec4ab9d5a46f Mon Sep 17 00:00:00 2001 From: drakeet Date: Mon, 3 Apr 2017 12:35:57 +0800 Subject: [PATCH] Removed unnecessary items of ItemViewBinder --- library/src/main/java/me/drakeet/multitype/ItemViewBinder.java | 1 - library/src/main/java/me/drakeet/multitype/MultiTypeAdapter.java | 1 - 2 files changed, 2 deletions(-) diff --git a/library/src/main/java/me/drakeet/multitype/ItemViewBinder.java b/library/src/main/java/me/drakeet/multitype/ItemViewBinder.java index 801f3a14..734345c8 100644 --- a/library/src/main/java/me/drakeet/multitype/ItemViewBinder.java +++ b/library/src/main/java/me/drakeet/multitype/ItemViewBinder.java @@ -28,7 +28,6 @@ public abstract class ItemViewBinder { /* internal */ MultiTypeAdapter adapter; - /* internal */ List items; @NonNull diff --git a/library/src/main/java/me/drakeet/multitype/MultiTypeAdapter.java b/library/src/main/java/me/drakeet/multitype/MultiTypeAdapter.java index cf9c1adf..7528cfc2 100644 --- a/library/src/main/java/me/drakeet/multitype/MultiTypeAdapter.java +++ b/library/src/main/java/me/drakeet/multitype/MultiTypeAdapter.java @@ -133,7 +133,6 @@ public final ViewHolder onCreateViewHolder(ViewGroup parent, int indexViewType) } ItemViewBinder binder = getBinderByIndex(indexViewType); binder.adapter = MultiTypeAdapter.this; - binder.items = items; assert inflater != null; return binder.onCreateViewHolder(inflater, parent); }