Skip to content

Commit

Permalink
Merge pull request #151 from moagrius/issue-141
Browse files Browse the repository at this point in the history
removed isEmpty fast-fail per #141
  • Loading branch information
moagrius committed Nov 30, 2014
2 parents 4d6665e + 9935a3f commit b35a665
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,6 @@ pip-log.txt
/AndroidManifest.xml
/proguard-project.txt
/project.properties

# Project Specific
/build.xml
9 changes: 2 additions & 7 deletions src/com/qozix/tileview/hotspots/HotSpotManager.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.qozix.tileview.hotspots;

import java.util.ArrayList;
import java.util.LinkedList;
import android.graphics.Point;

import com.qozix.tileview.detail.DetailLevelEventListener;
import com.qozix.tileview.detail.DetailManager;

import android.graphics.Point;
import java.util.ArrayList;

public class HotSpotManager implements DetailLevelEventListener {

Expand Down Expand Up @@ -54,10 +53,6 @@ private HotSpot getMatch( Point point ){
}

public void processHit( Point point ){
// fast-fail if no listeners
if(listeners.isEmpty()){
return;
}
// is there a match?
HotSpot hotSpot = getMatch( point );
if( hotSpot != null){
Expand Down

0 comments on commit b35a665

Please sign in to comment.