File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
library/src/main/java/com/alamkanak/weekview Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -898,9 +898,6 @@ private void getMoreEvents(Calendar day) {
898
898
* @param event The event to cache.
899
899
*/
900
900
private void cacheEvent (WeekViewEvent event ) {
901
- // do not cache twice
902
- if (alreadyCached (event )) return ;
903
-
904
901
if (!isSameDay (event .getStartTime (), event .getEndTime ())) {
905
902
// add first day
906
903
Calendar endTime = (Calendar ) event .getStartTime ().clone ();
@@ -947,15 +944,6 @@ private void sortAndCacheEvents(List<WeekViewEvent> events) {
947
944
}
948
945
}
949
946
950
- private boolean alreadyCached (WeekViewEvent event ) {
951
- for (EventRect eventRect : mEventRects ) {
952
- if (eventRect .originalEvent .getId () == event .getId ()) {
953
- return true ;
954
- }
955
- }
956
- return false ;
957
- }
958
-
959
947
/**
960
948
* Sorts the events in ascending order.
961
949
* @param events The events to be sorted.
You can’t perform that action at this time.
0 commit comments