[meld/build-updates: 13/26] Remove unused function from maint




commit 3c8e0c3030d4fd32390c055e0b7334c9ab4d9430
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Sep 11 08:51:20 2022 +1000

    Remove unused function from maint

 maint | 14 --------------
 1 file changed, 14 deletions(-)
---
diff --git a/maint b/maint
index 31430fd0..66792246 100644
--- a/maint
+++ b/maint
@@ -368,20 +368,6 @@ def appdata():
     return message
 
 
-def write_somewhere(filename, output):
-    if filename and os.path.exists(filename):
-        overwrite = click.confirm(
-            'File "%s" already exists. Overwrite?' % filename, abort=True)
-        if not overwrite:
-            raise click.Abort()
-    if filename:
-        with open(filename, 'w') as f:
-            f.write(output)
-        click.echo('Wrote %s' % filename)
-    else:
-        click.echo(output)
-
-
 @cli.command()
 def dist():
     build_dir = '_build'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]