[PR #612] [CLOSED] Remove unused methods in models/action #15490

Closed
opened 2025-11-02 11:47:44 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/612
Author: @ethantkoenig
Created: 1/8/2017
Status: Closed

Base: masterHead: cleanup/action


📝 Commits (1)

  • 4d4c29c Remove unused methods in models/action

📊 Changes

1 file changed (+0 additions, -42 deletions)

View changed files

📝 models/action.go (+0 -42)

📄 Description

Removes:

  • Several unused "getters" for public fields in the Action struct
  • Action_ShortRepoPath(). It's never used, and I can't think of a situation where it would be useful.

EDIT: These methods are used in the templates


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/612 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 1/8/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `cleanup/action` --- ### 📝 Commits (1) - [`4d4c29c`](https://github.com/go-gitea/gitea/commit/4d4c29c50de8cab3ce45b5b3dbb573dbf8b35e67) Remove unused methods in models/action ### 📊 Changes **1 file changed** (+0 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `models/action.go` (+0 -42) </details> ### 📄 Description Removes: - Several unused "getters" for public fields in the `Action` struct - `Action_ShortRepoPath()`. It's never used, and I can't think of a situation where it would be useful. __EDIT__: These methods are used in the templates --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:47:44 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15490