Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Antalik <richardantalik@gmail.com>2020-12-31 06:47:23 +0300
committerRichard Antalik <richardantalik@gmail.com>2020-12-31 07:02:10 +0300
commite5e57fe0a2f956854775d7e2cf6decbc4728df7d (patch)
treea4408c24de8ce3a26278b4ecab449bf8aaf65c85 /source/blender/editors/space_sequencer
parent8373f497bd159d4226d38cae0432e9a098afe175 (diff)
Cleanup: Remove unused functions from sequencer_edit.c
No functional changes.
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c108
1 files changed, 0 insertions, 108 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index 41217deceba..12aecd85173 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -3210,114 +3210,6 @@ void SEQUENCER_OT_set_range_to_strips(struct wmOperatorType *ot)
/** \} */
/* -------------------------------------------------------------------- */
-/** \name Unused functions
- * \{ */
-
-#if 0
-static void set_filter_seq(Scene *scene)
-{
- Sequence *seq;
- Editing *ed = SEQ_editing_get(scene, false);
-
- if (ed == NULL) {
- return;
- }
-
- if (okee("Set Deinterlace") == 0) {
- return;
- }
-
- SEQ_CURRENT_BEGIN (ed, seq) {
- if (seq->flag & SELECT) {
- if (seq->type == SEQ_TYPE_MOVIE) {
- seq->flag |= SEQ_FILTERY;
- SEQ_add_reload_new_file(bmain, scene, seq, false);
- SEQ_time_update_sequence(scene, seq);
- }
- }
- }
- SEQ_CURRENT_END;
-}
-
-static void UNUSED_FUNCTION(seq_remap_paths)(Scene *scene)
-{
- Sequence *seq, *last_seq = SEQ_select_active_get(scene);
- Editing *ed = SEQ_editing_get(scene, false);
- char from[FILE_MAX], to[FILE_MAX], stripped[FILE_MAX];
-
- if (last_seq == NULL) {
- return;
- }
-
- BLI_strncpy(from, last_seq->strip->dir, sizeof(from));
- /* XXX if (0 == sbutton(from, 0, sizeof(from) - 1, "From: "))
- * return; */
-
- BLI_strncpy(to, from, sizeof(to));
- /* XXX if (0 == sbutton(to, 0, sizeof(to) - 1, "To: "))
- * return; */
-
- if (STREQ(to, from)) {
- return;
- }
-
- SEQ_CURRENT_BEGIN (ed, seq) {
- if (seq->flag & SELECT) {
- if (STREQLEN(seq->strip->dir, from, strlen(from))) {
- printf("found %s\n", seq->strip->dir);
-
- /* Strip off the beginning. */
- stripped[0] = 0;
- BLI_strncpy(stripped, seq->strip->dir + strlen(from), FILE_MAX);
-
- /* New path. */
- BLI_snprintf(seq->strip->dir, sizeof(seq->strip->dir), "%s%s", to, stripped);
- printf("new %s\n", seq->strip->dir);
- }
- }
- }
- SEQ_CURRENT_END;
-}
-
-static Sequence *sequence_find_parent(Scene *scene, Sequence *child)
-{
- Editing *ed = SEQ_editing_get(scene, false);
- Sequence *parent = NULL;
- Sequence *seq;
-
- if (ed == NULL) {
- return NULL;
- }
-
- for (seq = ed->seqbasep->first; seq; seq = seq->next) {
- if ((seq != child) && seq_is_parent(seq, child)) {
- parent = seq;
- break;
- }
- }
-
- return parent;
-}
-
-static int seq_get_snaplimit(View2D *v2d)
-{
- /* fake mouse coords to get the snap value
- * a bit lazy but its only done once pre transform */
- float xmouse, ymouse, x;
- int mval[2] = {24, 0}; /* 24 screen px snap */
-
- UI_view2d_region_to_view(v2d, mval[0], mval[1], &xmouse, &ymouse);
- x = xmouse;
- mval[0] = 0;
- UI_view2d_region_to_view(v2d, mval[0], mval[1], &xmouse, &ymouse);
- return (int)(x - xmouse);
-}
-
-#endif
-
-/** \} */
-
-/* -------------------------------------------------------------------- */
/** \name Unused in current file
* \{ */