diff --git a/models/branches.go b/models/branches.go
index a02ff1b8bb..89a699603b 100644
--- a/models/branches.go
+++ b/models/branches.go
@@ -10,14 +10,9 @@ import (
 	"time"
 )
 
-// Protected metadata
 const (
-	// Protected User ID
-	ProtectedBranchUserID = "GITEA_USER_ID"
-	// Protected Repo ID
+	// ProtectedBranchRepoID protected Repo ID
 	ProtectedBranchRepoID = "GITEA_REPO_ID"
-	// Protected access mode
-	ProtectedBranchAccessMode = "GITEA_ACCESS_MODE"
 )
 
 // ProtectedBranch struct