Skip to content

Commit

Permalink
Merge pull request #9 from bouzuya/remove-unused-fn
Browse files Browse the repository at this point in the history
Remove unused _unsafeDeleteObject
  • Loading branch information
garyb authored Jun 9, 2019
2 parents ecf9457 + 75bd46a commit 8a7dc21
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/Foreign/Object.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ exports._lookup = function (no, yes, k, m) {
return k in m ? yes(m[k]) : no;
};

exports._unsafeDeleteObject = function (m, k) {
delete m[k];
return m;
};

exports._lookupST = function (no, yes, k, m) {
return function () {
return k in m ? yes(m[k]) : no;
Expand Down
2 changes: 0 additions & 2 deletions src/Foreign/Object.purs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ member = runFn4 _lookup false (const true)
insert :: forall a. String -> a -> Object a -> Object a
insert k v = mutate (OST.poke k v)

foreign import _unsafeDeleteObject :: forall a. Fn2 (Object a) String (Object a)

-- | Delete a key and value from a map
delete :: forall a. String -> Object a -> Object a
delete k = mutate (OST.delete k)
Expand Down

0 comments on commit 8a7dc21

Please sign in to comment.