Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
don't leave it hanging around in comments, it's not coming back

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
  • Loading branch information
Kingdon Barrett committed Jul 24, 2023
1 parent 9f759d5 commit e63eb83
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/commands/fluxReconcileSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { BucketNode } from 'ui/treeviews/nodes/source/bucketNode';
import { GitRepositoryNode } from 'ui/treeviews/nodes/source/gitRepositoryNode';
import { HelmRepositoryNode } from 'ui/treeviews/nodes/source/helmRepositoryNode';
import { OCIRepositoryNode } from 'ui/treeviews/nodes/source/ociRepositoryNode';
import { refreshSourcesTreeView } from 'ui/treeviews/treeViews';

/**
* Invoke flux reconcile of a specific source.
Expand All @@ -26,6 +25,4 @@ export async function fluxReconcileSourceCommand(source: GitRepositoryNode | OCI
}

await fluxTools.reconcile(sourceType, source.resource.metadata?.name || '', source.resource.metadata?.namespace || '');

// refreshSourcesTreeView();
}
6 changes: 0 additions & 6 deletions src/commands/fluxReconcileWorkload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { FluxWorkload } from 'types/fluxCliTypes';
import { Kind } from 'types/kubernetes/kubernetesTypes';
import { HelmReleaseNode } from 'ui/treeviews/nodes/workload/helmReleaseNode';
import { KustomizationNode } from 'ui/treeviews/nodes/workload/kustomizationNode';
import { refreshSourcesTreeView, refreshWorkloadsTreeView } from 'ui/treeviews/treeViews';

/**
* Invoke flux reconcile of a specific workload.
Expand All @@ -24,11 +23,6 @@ export async function fluxReconcileWorkload(workload: KustomizationNode | HelmRe
}

await fluxTools.reconcile(workloadType, workload.resource.metadata?.name || '', workload.resource.metadata?.namespace || '', withSource);

// refreshWorkloadsTreeView(workload);
// if(withSource) {
// refreshSourcesTreeView();
// }
}


Expand Down

0 comments on commit e63eb83

Please sign in to comment.