Skip to content

Commit fc7b70c

Browse files
committed
Removed doubly-defined function that was unused
1 parent 1e51545 commit fc7b70c

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

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

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,16 +1165,6 @@ public str groupsTable() = groupsTable({},{},{});
11651165
11661166
public list[str] getFeatureLabels() = [ l | \map(_,rtype) := #FMap.symbol, /Type::label(l,_) := rtype ];
11671167
1168-
public void checkGroups() {
1169-
labels = getFeatureLabels();
1170-
groups = getFeatureGroups();
1171-
//keys = [rascalFriendlyKey(k) | k <- (exprKeyOrder()+stmtKeyOrder())];
1172-
missing = {*labels} - {*groups[g] | g <- groups};
1173-
extra = {*groups[g] | g <- groups} - {*labels};
1174-
for (m <- missing) println("Missing: <m>");
1175-
for (e <- extra) println("Extra: <e>");
1176-
}
1177-
11781168
public str generalFeatureSquiglies(FMap featsMap) {
11791169
labels = getFeatureLabels();
11801170
groups = getFeatureGroups();
@@ -1419,27 +1409,6 @@ public FeatureLattice calculateTransitiveFiles(FeatureLattice lattice, FeatureNo
14191409
return lattice;
14201410
}
14211411
1422-
public void checkGroups() {
1423-
labels = [ l | \map(_,rtype) := #FMap.symbol, /Type::label(l,_) := rtype ];
1424-
groups = ("binary ops" : [ l | str l:/^binaryOp.*/ <- labels ])
1425-
+ ("unary ops" : [l | str l:/^unaryOp.*/ <- labels ])
1426-
+ ("control flow" : ["break","continue","declare","do","for","foreach","goto","if","return","switch","throw","tryCatch","while","exit","suppress","label"])
1427-
+ ("assignment ops" : [l | str l:/^assign.*/ <-labels] + ["listAssign","refAssign", "unset"])
1428-
+ ("definitions" : ["functionDef","interfaceDef","traitDef","classDef","namespace","global","static","const","use","include","closure"])
1429-
+ ("invocations" : ["call","methodCall","staticCall", "eval", "shellExec"])
1430-
+ ("allocations" : ["array","new","scalar", "clone"])
1431-
+ ("casts" : [l | str l:/^cast.*/ <- labels])
1432-
+ ("print" : ["print","echo","inlineHTML" ])
1433-
+ ("predicates" : ["isSet","empty","instanceOf"])
1434-
+ ("lookups" : ["fetchArrayDim","fetchClassConst","var","classConst","fetchConst","propertyFetch","fetchStaticProperty"])
1435-
;
1436-
keys = [rascalFriendlyKey(k) | k <- (exprKeyOrder()+stmtKeyOrder())];
1437-
missing = toSet(keys) - {*g|g<-groups<1>};
1438-
extra = {*g|g<-groups<1>} - toSet(keys);
1439-
for (m <- missing) println("Missing: <m>");
1440-
for (e <- extra) println("Extra: <e>");
1441-
}
1442-
14431412
public tuple[set[FeatureNode],set[str],int] minimumFeaturesForPercent(FMap fmap, FeatureLattice lattice, int targetPercent) {
14441413
println("Calculating coverage needed for <targetPercent>%");
14451414

0 commit comments

Comments
 (0)