[Bf-blender-cvs] [e5e57fe0a2f] master: Cleanup: Remove unused functions from sequencer_edit.c

Richard Antalik noreply at git.blender.org
Thu Dec 31 05:03:49 CET 2020


Commit: e5e57fe0a2f956854775d7e2cf6decbc4728df7d
Author: Richard Antalik
Date:   Thu Dec 31 04:47:23 2020 +0100
Branches: master
https://developer.blender.org/rBe5e57fe0a2f956854775d7e2cf6decbc4728df7d

Cleanup: Remove unused functions from sequencer_edit.c

No functional changes.

===================================================================

M	source/blender/editors/space_sequencer/sequencer_edit.c

===================================================================

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
@@ -3209,114 +3209,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
  * \{ */



More information about the Bf-blender-cvs mailing list