Remove duplicated function

This commit is contained in:
Will Bamberg
2016-07-19 12:57:18 -07:00
parent 83bdefd6a4
commit ec1830914e

View File

@@ -35,18 +35,3 @@ function insertBeast(beastURL) {
Assign beastify() as a listener for messages from the extension.
*/
chrome.runtime.onMessage.addListener(beastify);
/*
Given the name of a beast, get the URL to the corresponding image.
*/
function beastNameToURL(beastName) {
switch (beastName) {
case "Frog":
return chrome.extension.getURL("beasts/frog.jpg");
case "Snake":
return chrome.extension.getURL("beasts/snake.jpg");
case "Turtle":
return chrome.extension.getURL("beasts/turtle.jpg");
}
}