diff --git a/.deadcode-out b/.deadcode-out
index 51429164a..ac62e77ba 100644
--- a/.deadcode-out
+++ b/.deadcode-out
@@ -136,7 +136,6 @@ package "code.gitea.io/gitea/models/user"
 	func DeleteUserSetting
 	func GetUserEmailsByNames
 	func GetUserNamesByIDs
-	func DeleteFederatedUser
 
 package "code.gitea.io/gitea/modules/activitypub"
 	func (*Client).Post
diff --git a/services/federation/federation_service.go b/services/federation/federation_service.go
index 9f99c04e9..1c99f784b 100644
--- a/services/federation/federation_service.go
+++ b/services/federation/federation_service.go
@@ -242,4 +242,3 @@ func StoreFollowingRepoList(ctx context.Context, localRepoID int64, followingRep
 func DeleteFollowingRepos(ctx context.Context, localRepoID int64) error {
 	return repo.StoreFollowingRepos(ctx, localRepoID, []*repo.FollowingRepo{})
 }
-