Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused properties #1205

Merged
merged 1 commit into from
Sep 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/FolderManager/ProjectFolderItem.vala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace Scratch.FolderManager {
public Scratch.Services.MonitoredRepository? monitored_repo { get; private set; default = null; }
// Cache the visible item in the project.
private List<VisibleItem?> visible_item_list = null;
public string top_level_path { get; construct; }

public bool is_git_repo {
get {
return monitored_repo != null;
Expand Down
5 changes: 0 additions & 5 deletions src/Widgets/SourceGutterRenderer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ public class Scratch.Widgets.SourceGutterRenderer : Gtk.SourceGutterRenderer {
public Gee.HashMap<int, Services.VCStatus> line_status_map;
public Gee.HashMap<Services.VCStatus, Gdk.RGBA?> status_color_map;
public FolderManager.ProjectFolderItem? project { get; set; default = null; }
public string workdir_path {
get {
return project != null ? project.top_level_path : "";
}
}

static construct {
fallback_scheme = Gtk.SourceStyleSchemeManager.get_default ().get_scheme ("classic"); // We can assume this always exists
Expand Down