Skip to content

Commit c731909

Browse files
committed
Removed code clone
1 parent f1b3a08 commit c731909

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/main/rascal/lang/php/stats/Stats.rsc

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -520,28 +520,6 @@ public map[str Product, str Version] getLatestPHP5VersionsByDate() {
520520
return ( p : last(v5l)[0] | p <- versions<0>, v5l := sort([ <v,d> | <v,d,pv,_> <- versions[p], "5" == pv[0] ],bool(tuple[str,str] t1, tuple[str,str] t2) { return t1[1] < t2[1]; }), !isEmpty(v5l) );
521521
}
522522
523-
public map[str Product, str Version] getLatestVersionsByVersionNumber() {
524-
versions = loadVersionsCSV();
525-
return ( p : last(vl)[0] | p <- versions<0>, vl := sort([ <v,d> | <v,d,_,_> <- versions[p] ],bool(tuple[str,str] t1, tuple[str,str] t2) { return compareVersion(t1[0],t2[0]); }) );
526-
}
527-
528-
public map[str Product, str Version] getLatestPHP4VersionsByVersionNumber() {
529-
versions = loadVersionsCSV();
530-
return ( p : last(v4l)[0] | p <- versions<0>, v4l := sort([ <v,d> | <v,d,pv,_> <- versions[p], "4" == pv[0] ],bool(tuple[str,str] t1, tuple[str,str] t2) { return compareVersion(t1[0], t2[0]); }), !isEmpty(v4l) );
531-
}
532-
533-
public map[str Product, str Version] getLatestPHP5VersionsByVersionNumber() {
534-
versions = loadVersionsCSV();
535-
return ( p : last(v5l)[0] | p <- versions<0>, v5l := sort([ <v,d> | <v,d,pv,_> <- versions[p], "5" == pv[0] ],bool(tuple[str,str] t1, tuple[str,str] t2) { return compareVersion(t1[0],t2[0]); }), !isEmpty(v5l) );
536-
}
537-
538-
public map[str Product, str Version] getLatestVersions() = getLatestVersionsByVersionNumber();
539-
540-
public map[str Product, str Version] getLatestPHP4Versions() = getLatestPHP4VersionsByVersionNumber();
541-
542-
public map[str Product, str Version] getLatestPHP5Versions() = getLatestPHP5VersionsByVersionNumber();
543-
544-
545523
public str getPHPVersion(str product, str version) {
546524
versions = loadVersionsCSV();
547525
return getOneFrom(versions[product,version,_]<0>);

0 commit comments

Comments
 (0)