removed useless code

This commit is contained in:
lengstrom 2015-03-14 14:56:15 -04:00
parent 9eecb2746a
commit 10aa54b947
2 changed files with 8 additions and 11 deletions

View file

@ -23,13 +23,13 @@
<meta property="twitter:image:src" content="http://hextris.github.io/hextris/images/twitter-opengraph.png" />
<meta property="twitter:image:width" content="512" />
<meta property="twitter:image:height" content="512" />
<meta property="twitter:app:id:iphone" content="id903769553">
<meta property="twitter:app:id:ipad" content="id903769553">
<meta property="twitter:app:id:googleplay" content="com.hextris.hextris">
<meta property="twitter:app:country" content="us">
<meta property="twitter:app:url:iphone" content="itunes.apple.com/us/app/id903769553?mt=8">
<meta property="twitter:app:url:ipad" content="itunes.apple.com/us/app/id903769553?mt=8">
<meta property="twitter:app:url:googleplay" content="https://play.google.com/store/apps/details?id=com.hextris.hextris">
<meta property="twitter:app:id:iphone" content="id903769553">
<meta property="twitter:app:id:ipad" content="id903769553">
<meta property="twitter:app:id:googleplay" content="com.hextris.hextris">
<meta property="twitter:app:country" content="us">
<meta property="twitter:app:url:iphone" content="itunes.apple.com/us/app/id903769553?mt=8">
<meta property="twitter:app:url:ipad" content="itunes.apple.com/us/app/id903769553?mt=8">
<meta property="twitter:app:url:googleplay" content="https://play.google.com/store/apps/details?id=com.hextris.hextris">
<link rel="icon" type="image/png" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="style/style.css">
<link rel="stylesheet" href="style/fa/css/font-awesome.min.css">

View file

@ -9,10 +9,7 @@ function search(twoD,oneD){
}
function floodFill(hex, side, index, deleting) {
if (hex.blocks[side] === undefined || hex.blocks[side][index] === undefined) {
//just makin sure stuff exists
return;
}
if (hex.blocks[side] === undefined || hex.blocks[side][index] === undefined) return;
//store the color
var color = hex.blocks[side][index].color;