Skip to content

Commit

Permalink
Remove unused _unsafeDeleteObject
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Jun 8, 2019
1 parent ecf9457 commit 75bd46a
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 75bd46a

Please sign in to comment.