Clean up old comments

This commit is contained in:
dannyrb 2020-06-26 14:17:45 -04:00
parent c6ec439331
commit 8339154820
2 changed files with 0 additions and 14 deletions

View File

@ -65,7 +65,6 @@ export default function init({ servicesManager, configuration }) {
const handleOhifCornerstoneEnabledElementEvent = function(evt) {
const { viewportIndex, enabledElement } = evt.detail;
console.log(evt, viewportIndex, enabledElement);
setEnabledElement(viewportIndex, enabledElement);
};

View File

@ -16,14 +16,6 @@ const DEFAULT_STATE = {
export const ViewportGridContext = createContext(DEFAULT_STATE);
// export function ViewportGridProvider({ reducer, initialState, children }) {
// return (
// <ViewportGridContext.Provider value={useReducer(reducer, initialState)}>
// {children}
// </ViewportGridContext.Provider>
// );
// }
export function ViewportGridProvider({ children, service }) {
const viewportGridReducer = (state, action) => {
switch (action.type) {
@ -139,8 +131,3 @@ ViewportGridProvider.propTypes = {
};
export const useViewportGrid = () => useContext(ViewportGridContext);
// TODO:
// - Update dependents of `useViewportGrid` to use new API instead of generic `dispatch`
// - Update `@ohif/core` interface `setServiceImplementation` to accomodate defined API methods
// - Update `@ohif/ext-cornerstone` commands to use new service to get the activeViewportIndex and restore command functionality