Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Apr 16, 2022
1 parent 5a5467a commit 1104238
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions checkstyle.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
},
"type": "CatchParameterName"
},
{
"type": "CommentedOutCode"
},
{
"props": {
"ignoreExtern": true,
Expand Down
2 changes: 0 additions & 2 deletions src/refactor/Cli.hx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import refactor.discover.UsageCollector;
import refactor.discover.UsageContext;
import refactor.edits.EditableDocument;

// import refactor.cache.FileCache;
class Cli {
var verbose:Bool = false;
var forReal:Bool = false;
Expand Down Expand Up @@ -109,7 +108,6 @@ class Cli {
var startTime = Timer.stamp();
TraverseSources.traverseSources(paths, usageContext);
usageContext.usageCollector.updateImportHx(usageContext);
// usageContext.cache.save();

var result:Promise<RefactorResult> = Refactor.rename({
nameMap: usageContext.nameMap,
Expand Down
2 changes: 0 additions & 2 deletions src/refactor/rename/RenameAnonStructField.hx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ class RenameAnonStructField {
public static function refactorAnonStructField(context:RefactorContext, file:File, identifier:Identifier,
fields:Array<TypedefFieldType>):Promise<RefactorResult> {
var changelist:Changelist = new Changelist(context);
// var packName:String = file.getPackage();
// var mainModuleName = file.getMainModulName();

changelist.addChange(identifier.pos.fileName, ReplaceText(context.what.toName, identifier.pos), identifier);

Expand Down
2 changes: 0 additions & 2 deletions src/refactor/rename/RenameHelper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ class RenameHelper {
}
return typeFromTypeHint(context, typeParams[index]);
}
// return Promise.resolve(null);
return Promise.reject("not found");
}));
}
Expand Down Expand Up @@ -387,7 +386,6 @@ class RenameHelper {
context.verboseLog("could not find first parameter for static extension");
return Promise.resolve(null);
}
// var firstParamType:Null<TypeHintType> = null;
var changes:Array<Promise<Void>> = [];
for (use in firstParam.uses) {
switch (use.type) {
Expand Down

0 comments on commit 1104238

Please sign in to comment.