changeset 1264:eded1e736a7e

layouts: remove persist since we no longer use it
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 24 Mar 2014 11:20:49 -0500
parents 54cf64e9ef49
children 4744b7bfa476
files hgsubversion/layouts/__init__.py hgsubversion/layouts/persist.py
diffstat 2 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/layouts/__init__.py
+++ b/hgsubversion/layouts/__init__.py
@@ -13,14 +13,12 @@ from mercurial import util as hgutil
 
 import custom
 import detect
-import persist
 import single
 import standard
 
 __all__ = [
     "detect",
     "layout_from_name",
-    "persist",
     ]
 
 # This is the authoritative store of what layouts are available.
deleted file mode 100644
--- a/hgsubversion/layouts/persist.py
+++ /dev/null
@@ -1,16 +0,0 @@
-"""Code for persisting the layout config in various locations.
-
-Basically, if you want to save the layout, this is where you should go
-to do it.
-
-"""
-
-import os.path
-
-def layout_to_file(metapath, layout):
-    """Save the given layout to a file under the given metapath"""
-
-    layoutfile = os.path.join(metapath, 'layout')
-    f = open(layoutfile, 'w')
-    f.write(layout)
-    f.close()