Skip to content

Commit

Permalink
remove unused addBinding in BindingList/Entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Adnan Abdulhussein committed Mar 29, 2018
1 parent 0eddccd commit a0afe07
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions dashboard/src/components/BindingList/BindingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import { BindingEntry } from "./BindingListEntry";

interface IBindingList {
bindings: IServiceBinding[];
addBinding: (bindingName: string, instanceName: string, namespace: string) => Promise<any>;
getCatalog: () => Promise<any>;
}

export class BindingList extends React.Component<IBindingList> {
public render() {
const { bindings, getCatalog, addBinding } = this.props;
const { bindings, getCatalog } = this.props;
return (
<div className="BindingEntryList">
<table>
Expand All @@ -27,7 +26,6 @@ export class BindingList extends React.Component<IBindingList> {
<BindingEntry
key={binding.metadata.uid}
binding={binding}
addBinding={addBinding}
getCatalog={getCatalog}
/>,
])
Expand Down
1 change: 0 additions & 1 deletion dashboard/src/components/BindingList/BindingListEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { RemoveBindingButton } from "../InstanceView/RemoveBindingButton";

interface IBindingEntryProps {
binding: IServiceBinding;
addBinding: (bindingName: string, instanceName: string, namespace: string) => Promise<any>;
getCatalog: () => Promise<any>;
}

Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/InstanceView/InstanceView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class InstanceView extends React.Component<IInstanceViewProps> {
addBinding={this.addBinding}
/>
<br />
<BindingList bindings={bindings} addBinding={this.addBinding} getCatalog={getCatalog} />
<BindingList bindings={bindings} getCatalog={getCatalog} />
</div>
)}
</div>
Expand Down

0 comments on commit a0afe07

Please sign in to comment.