Skip to content

Commit 3ef7d1d

Browse files
committed
Remove #getSubprojectPaths() because they can be done by the consumer
Too much API
1 parent 4bf118a commit 3ef7d1d

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/main/java/net/minecraftforge/gitver/api/GitVersion.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -285,36 +285,7 @@ sealed interface Info extends Serializable permits GitVersionInternal.Info {
285285
/** @return The declared subprojects of this path. */
286286
@Unmodifiable Collection<File> getSubprojects();
287287

288-
/**
289-
* Gets the relative subproject path strings from the declared subprojects. The path strings are relative from the
290-
* {@linkplain #getProject() project} directory. Use {@link #getSubprojectPaths(boolean)} to conditionally get the
291-
* path strings relative from the {@linkplain #getRoot() root} instead.
292-
* <p>
293-
* These path strings are calculated using the
294-
* {@linkplain java.nio.file.Path#relativize(java.nio.file.Path) relative path} from the
295-
* {@linkplain #getRoot() root} to each subproject.
296-
*
297-
* @return The subproject paths
298-
* @see #getSubprojects()
299-
* @see #getSubprojectPaths(boolean)
300-
*/
301-
default Collection<String> getSubprojectPaths() {
302-
return this.getSubprojectPaths(false);
303-
}
304288

305-
/**
306-
* Gets the relative subproject path strings from the declared subprojects. The path strings are relative from
307-
* either the {@linkplain #getRoot() root} or {@linkplain #getProject() project} directory, depending on the
308-
* {@code fromRoot} boolean parameter.
309-
* <p>
310-
* These path strings are calculated using the
311-
* {@linkplain java.nio.file.Path#relativize(java.nio.file.Path) relative path} from the
312-
* {@linkplain #getRoot() root} to each subproject.
313-
*
314-
* @return The subproject paths
315-
* @see #getSubprojects()
316-
*/
317-
Collection<String> getSubprojectPaths(boolean fromRoot);
318289

319290

320291
/* REPOSITORY */

0 commit comments

Comments
 (0)