Remove unused methods in the query API DB

This commit is contained in:
Brendan Abolivier 2017-08-11 17:42:15 +01:00
parent 9a077b0440
commit eab010dff4
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

@ -40,18 +40,6 @@ type RoomserverQueryAPIDatabase interface {
// Lookup the numeric IDs for a list of events.
// Returns an error if there was a problem talking to the database.
EventNIDs(eventIDs []string) (map[string]types.EventNID, error)
// Save a given room alias with the room ID it refers to.
// Returns an error if there was a problem talking to the database.
SetRoomAlias(alias string, roomID string) error
// Lookup the room ID a given alias refers to.
// Returns an error if there was a problem talking to the database.
GetRoomIDFromAlias(alias string) (string, error)
// Lookup all aliases referring to a given room ID.
// Returns an error if there was a problem talking to the database.
GetAliasesFromRoomID(roomID string) ([]string, error)
// Remove a given room alias.
// Returns an error if there was a problem talking to the database.
RemoveRoomAlias(alias string) error
}
// RoomserverQueryAPI is an implementation of api.RoomserverQueryAPI