diff --git a/src/Cache_p.h b/src/Cache_p.h
index 43644d7e24ddf16bf69f707a8a1c179403cbdc56..ff2f31e590c2c5f30f1664a6c1624f698ad10823 100644
--- a/src/Cache_p.h
+++ b/src/Cache_p.h
@@ -136,9 +136,6 @@ public:
         //! Retrieve all the user ids from a room.
         std::vector<std::string> roomMembers(const std::string &room_id);
 
-        //! Get the other user from an invite to a direct chat.
-        RoomMember getDirectInviteMember(const std::string &room_id);
-
         //! Check if the given user has power leve greater than than
         //! lowest power level of the given events.
         bool hasEnoughPowerLevel(const std::vector<mtx::events::EventType> &eventTypes,