Skip to content

Commit

Permalink
bug(#3845): remove DiscoverMojo
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Jan 29, 2025
1 parent b8a5a1e commit 41aabd7
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 284 deletions.
137 changes: 0 additions & 137 deletions eo-maven-plugin/src/main/java/org/eolang/maven/DiscoverMojo.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,6 @@ public ForeignTojo withJar(final Coordinates coordinates) {
return this;
}

/**
* Set the discovered size.
* @param size The size.
* @return The tojo itself.
*/
public ForeignTojo withDiscovered(final int size) {
this.delegate.set(ForeignTojos.Attribute.DISCOVERED.getKey(), Integer.valueOf(size));
return this;
}

/**
* Set the discovered at.
* @param path The path where was discovered.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,6 @@ public ForeignTojo find(final String id) {
);
}

/**
* Get the tojos that are not discovered yet.
* @return The tojos.
*/
public Collection<ForeignTojo> notDiscovered() {
return this.select(
row ->
row.exists(Attribute.SHAKEN.getKey())
&& !row.exists(Attribute.DISCOVERED.getKey())
);
}

/**
* Get the tojos that have corresponding xmir.
* @return The tojos.
Expand Down Expand Up @@ -245,7 +233,6 @@ public String status() {
Attribute.EO,
Attribute.XMIR,
Attribute.SHAKEN,
Attribute.DISCOVERED,
Attribute.PROBED,
};
final Collection<String> parts = new LinkedList<>();
Expand Down Expand Up @@ -320,11 +307,6 @@ enum Attribute {
*/
JAR("jar"),

/**
* In how many EO programs this object was seen (integer).
*/
DISCOVERED("discovered"),

/**
* Absolute path of the {@code .xmir} file where this object was discovered.
*/
Expand Down
101 changes: 0 additions & 101 deletions eo-maven-plugin/src/test/java/org/eolang/maven/DiscoverMojoTest.java

This file was deleted.

17 changes: 0 additions & 17 deletions eo-maven-plugin/src/test/java/org/eolang/maven/FakeMaven.java
Original file line number Diff line number Diff line change
Expand Up @@ -735,23 +735,6 @@ public Iterator<Class<? extends AbstractMojo>> iterator() {
}
}

/**
* Discovery pipeline.
*
* @since 0.31
*/
static final class Discover implements Iterable<Class<? extends AbstractMojo>> {

@Override
public Iterator<Class<? extends AbstractMojo>> iterator() {
return Arrays.<Class<? extends AbstractMojo>>asList(
ParseMojo.class,
ShakeMojo.class,
DiscoverMojo.class
).iterator();
}
}

/**
* Printing pipeline.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void resolvesWithoutAnyDependencies(@Mktmp final Path temp) throws IOException {
" a",
" b"
);
maven.foreignTojos().add("sum").withDiscovered(0);
maven.foreignTojos().add("sum");
maven.execute(new FakeMaven.Resolve());
final Path path = temp
.resolve("target")
Expand Down

0 comments on commit 41aabd7

Please sign in to comment.