def remove_if_same(self, key, value):
check_not_none(key, "<STR_LIT>")<EOL>check_not_none(value, "<STR_LIT>")<EOL>return self._encode_invoke(transactional_map_remove_if_same_codec, key=self._to_data(key),<EOL>value=self._to_data(value))<EOL>
Transactional implementation of :func:`Map.remove_if_same(key, value)
<hazelcast.proxy.map.Map.remove_if_same>`

The object to be removed will be removed from only the current transaction context until the transaction is
committed.

:param key: (object), the specified key.
:param value: (object), remove the key if it has this value.
:return: (bool), ``true`` if the value was removed, ``false`` otherwise.