From f7af7dff0f88dad216d90c4f4c32893ea5f31b9a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 21 Jan 2022 07:53:36 +0000 Subject: dtas: drop unnecessary "require 'yaml'" statements We use DTAS.yaml_load to wrap all YAML.*load calls, but we still need "require 'yaml'" for various .to_yaml calls. --- bin/dtas-console | 1 - bin/dtas-msinkctl | 1 - bin/dtas-player | 3 +-- bin/dtas-readahead | 1 - bin/dtas-splitfx | 1 - bin/dtas-tl | 1 - 6 files changed, 1 insertion(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/dtas-console b/bin/dtas-console index a519ba9..eedd0f0 100755 --- a/bin/dtas-console +++ b/bin/dtas-console @@ -11,7 +11,6 @@ require 'dtas/sigevent' require 'dtas/process' require 'dtas/format' include DTAS::Process -require 'yaml' begin require 'curses' rescue LoadError diff --git a/bin/dtas-msinkctl b/bin/dtas-msinkctl index 6fb3863..79c7f26 100755 --- a/bin/dtas-msinkctl +++ b/bin/dtas-msinkctl @@ -2,7 +2,6 @@ # Copyright (C) all contributors # License: GPL-3.0+ # frozen_string_literal: true -require 'yaml' require 'dtas/unix_client' usage = "#$0 SINK" c = DTAS::UNIXClient.new diff --git a/bin/dtas-player b/bin/dtas-player index 21bc45f..c926e5f 100755 --- a/bin/dtas-player +++ b/bin/dtas-player @@ -1,9 +1,8 @@ #!/usr/bin/env ruby -# Copyright (C) 2013-2020 all contributors +# Copyright (C) all contributors # License: GPL-3.0+ # frozen_string_literal: true Thread.abort_on_exception = $stderr.sync = $stdout.sync = true -require 'yaml' require 'dtas/player' sock = (ENV["DTAS_PLAYER_SOCK"] || File.expand_path("~/.dtas/player.sock")) state = (ENV["DTAS_PLAYER_STATE"] || diff --git a/bin/dtas-readahead b/bin/dtas-readahead index 996142c..d3c6e79 100755 --- a/bin/dtas-readahead +++ b/bin/dtas-readahead @@ -12,7 +12,6 @@ end @ffprobe = 'ffprobe' @avprobe = 'avprobe' -require 'yaml' require 'io/wait' require 'dtas/unix_client' require 'dtas/process' diff --git a/bin/dtas-splitfx b/bin/dtas-splitfx index 05e71e5..6ce6521 100755 --- a/bin/dtas-splitfx +++ b/bin/dtas-splitfx @@ -2,7 +2,6 @@ # Copyright (C) all contributors # License: GPL-3.0+ # frozen_string_literal: true -require 'yaml' require 'optparse' require 'dtas/splitfx' usage = "#$0 [-n|--dry-run][-j [JOBS]][-s|--silent] SPLITFX_FILE.yml [TARGET]" diff --git a/bin/dtas-tl b/bin/dtas-tl index c1af933..2b34937 100755 --- a/bin/dtas-tl +++ b/bin/dtas-tl @@ -23,7 +23,6 @@ end def do_edit(c) require 'dtas/edit_client' - require 'yaml' require 'tempfile' extend DTAS::EditClient tmp = Tempfile.new(%w(dtas-tl-edit .txt)) -- cgit v1.2.3-24-ge0c7