Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ソング:leftLocatorPositionとrightLocatorPositionが使われていないので削除 #1925

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/components/Sing/SingEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ onetimeWatch(

await store.dispatch("SET_VOLUME", { volume: 0.6 });
await store.dispatch("SET_PLAYHEAD_POSITION", { position: 0 });
await store.dispatch("SET_LEFT_LOCATOR_POSITION", {
position: 0,
});
await store.dispatch("SET_RIGHT_LOCATOR_POSITION", {
position: 480 * 4 * 16,
});
isCompletedInitialStartup.value = true;

await store.dispatch("SET_SINGER", {});
Expand Down
20 changes: 0 additions & 20 deletions src/store/singing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ export const singingStoreState: SingingStoreState = {
overlappingNoteInfos: new Map(),
nowPlaying: false,
volume: 0,
leftLocatorPosition: 0,
rightLocatorPosition: 0,
startRenderingRequested: false,
stopRenderingRequested: false,
nowRendering: false,
Expand Down Expand Up @@ -636,24 +634,6 @@ export const singingStore = createPartialStore<SingingStoreTypes>({
},
},

SET_LEFT_LOCATOR_POSITION: {
mutation(state, { position }) {
state.leftLocatorPosition = position;
},
async action({ commit }, { position }) {
commit("SET_LEFT_LOCATOR_POSITION", { position });
},
},

SET_RIGHT_LOCATOR_POSITION: {
mutation(state, { position }) {
state.rightLocatorPosition = position;
},
async action({ commit }, { position }) {
commit("SET_RIGHT_LOCATOR_POSITION", { position });
},
},

SET_PLAYBACK_STATE: {
mutation(state, { nowPlaying }) {
state.nowPlaying = nowPlaying;
Expand Down
12 changes: 0 additions & 12 deletions src/store/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,6 @@ export type SingingStoreState = {
editingLyricNoteId?: string;
nowPlaying: boolean;
volume: number;
leftLocatorPosition: number;
rightLocatorPosition: number;
startRenderingRequested: boolean;
stopRenderingRequested: boolean;
nowRendering: boolean;
Expand Down Expand Up @@ -964,16 +962,6 @@ export type SingingStoreTypes = {
action(payload: { listener: (position: number) => void }): void;
};

SET_LEFT_LOCATOR_POSITION: {
mutation: { position: number };
action(payload: { position: number }): void;
};

SET_RIGHT_LOCATOR_POSITION: {
mutation: { position: number };
action(payload: { position: number }): void;
};

SET_PLAYBACK_STATE: {
mutation: { nowPlaying: boolean };
};
Expand Down
Loading