Skip to content

Commit

Permalink
refactor: remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
singuerinc committed Oct 8, 2018
1 parent d84dd30 commit 42b0adf
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions app/components/ruler/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,4 @@ const factory = (id: string = uuid(), props = {}): IRuler => ({
...props
});

// interface State {
// rulers: IRuler[];
// }

// const addRuler = ({ rulers }: State) => ({
// rulers: [...rulers, factory(uuid())]
// });

// const duplicateRuler = (rulerInfo: object) => ({ rulers }: State) => ({
// rulers: [
// ...rulers,
// {
// ...rulerInfo,
// id: uuid()
// } as IRuler
// ]
// });

// const removeRuler = (id: string) => ({ rulers }: { rulers: IRuler[] }) => {
// const hasSameId = (id: string) => (x: IRuler) => x.id === id;
// const filtered: IRuler[] = R.reject(hasSameId(id), rulers);

// return {
// rulers: filtered
// };
// };

export { factory };

0 comments on commit 42b0adf

Please sign in to comment.