Skip to content

Commit

Permalink
dfmc-environment-projects: simplify open-projects method
Browse files Browse the repository at this point in the history
  • Loading branch information
cgay committed Jan 7, 2024
1 parent a43ef2d commit 649e37d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions sources/environment/dfmc/projects/common.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,10 @@ define sealed method initialize
(project-object :: <native-project-object>, #key) => ()
next-method();
add-new!(*open-projects*, project-object);
end method initialize;
end method;

//--- Is there a way around making this sideways?
define sealed sideways method open-projects
() => (projects :: <sequence>)
let projects :: <stretchy-object-vector> = make(<stretchy-object-vector>);
for (project :: <native-project-object> in *open-projects*)
if (project-opened-by-user?(project))
add!(projects, project)
end
end;
projects
end method open-projects;
choose(project-opened-by-user?, *open-projects*)
end method;

0 comments on commit 649e37d

Please sign in to comment.