Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Kuhtz committed May 15, 2014
1 parent a4ef82c commit 1779629
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion bayhac2014-cryptmail.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ Library
BayHac2014.Cryptmail.Json.Instances

exposed-modules:
-- BayHac2014.Cryptmail.Utils
BayHac2014.Cryptmail.Text
BayHac2014.Cryptmail.ByteString
BayHac2014.Cryptmail.PasswordEncryption
Expand Down
16 changes: 0 additions & 16 deletions lib/bayhac2014-cryptmail.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@

var jsCatchJS = function (f, handler) {
try {
return E(f())[1];
} catch(e) {
return E(handler([0,e.toString()]))[1];
}
}

var jsCatchE = function (f) {
try {
return [1,E(f())[1]];
} catch(e) {
return [0,[0,e.toString()]];
}
}

var catchEither = function (f) {
try {
return [1, [0, f()]];
Expand Down

0 comments on commit 1779629

Please sign in to comment.