Skip to content

Commit 693a048

Browse files
mattludwigsfhunleth
authored andcommitted
Remove unused code
1 parent 8745ca5 commit 693a048

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

index.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,6 @@ var hexSearch = {
7373
}
7474
},
7575

76-
attachLibraryClick: function (libraryDomElm, state) {
77-
libraryDomElm.addEventListener("click", function (event) {
78-
event.preventDefault();
79-
this.update("search", [event.target, event.target.getAttribute("data-name")], state);
80-
}.bind(this))
81-
},
82-
8376
search: function (libraryName) {
8477
return axios
8578
.get("https://hex.pm/api/packages?search=depends%3A" + libraryName)
@@ -115,12 +108,6 @@ var hexSearch = {
115108
ul.appendChild(li);
116109
}
117110

118-
var oldList = document.getElementById("js-hex-lib-list");
119-
120-
if (oldList) {
121-
state.avaliableLibrariesDom.removeChild(oldList);
122-
}
123-
124111
state.avaliableLibrariesDom.appendChild(ul);
125112
},
126113

0 commit comments

Comments
 (0)