chore: Remove GetTopicByName

- Introduced in bec69f702b and removed in
the same commit (only usage was in testing code).
This commit is contained in:
Gusted 2025-01-30 11:55:50 +01:00
parent 5813244ff8
commit a52b610eff
No known key found for this signature in database
GPG key ID: FD821B732837125F
3 changed files with 1 additions and 39 deletions

View file

@ -52,8 +52,7 @@ func TestAddTopic(t *testing.T) {
require.NoError(t, repo_model.SaveTopics(db.DefaultContext, 2, "golang", "gitea"))
repo2NrOfTopics = 2
totalNrOfTopics++
topic, err := repo_model.GetTopicByName(db.DefaultContext, "gitea")
require.NoError(t, err)
topic := unittest.AssertExistsAndLoadBean(t, &repo_model.Topic{Name: "gitea"})
assert.EqualValues(t, 1, topic.RepoCount)
topics, _, err = repo_model.FindTopics(db.DefaultContext, &repo_model.FindTopicOptions{})