aboutsummaryrefslogtreecommitdiff
path: root/vendor/gopkg.in/yaml.v2/writerc.go
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2026-06-05 16:49:33 -0300
committerRaul Benencia <46945030+raul-te@users.noreply.github.com>2026-06-05 16:56:20 -0300
commit07a844375e9052b998f425fbe65094bc555974ba (patch)
tree71d49990ac297ebbd0d140e3c101474f4bca4356 /vendor/gopkg.in/yaml.v2/writerc.go
parent53a9db984e92a96e0ad8005434c68162446e2ed5 (diff)
Update to yaml.v3 and drop vendor/
Diffstat (limited to 'vendor/gopkg.in/yaml.v2/writerc.go')
-rw-r--r--vendor/gopkg.in/yaml.v2/writerc.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/vendor/gopkg.in/yaml.v2/writerc.go b/vendor/gopkg.in/yaml.v2/writerc.go
deleted file mode 100644
index a2dde60..0000000
--- a/vendor/gopkg.in/yaml.v2/writerc.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package yaml
-
-// Set the writer error and return false.
-func yaml_emitter_set_writer_error(emitter *yaml_emitter_t, problem string) bool {
- emitter.error = yaml_WRITER_ERROR
- emitter.problem = problem
- return false
-}
-
-// Flush the output buffer.
-func yaml_emitter_flush(emitter *yaml_emitter_t) bool {
- if emitter.write_handler == nil {
- panic("write handler not set")
- }
-
- // Check if the buffer is empty.
- if emitter.buffer_pos == 0 {
- return true
- }
-
- if err := emitter.write_handler(emitter, emitter.buffer[:emitter.buffer_pos]); err != nil {
- return yaml_emitter_set_writer_error(emitter, "write error: "+err.Error())
- }
- emitter.buffer_pos = 0
- return true
-}
nihil fit ex nihilo