Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Tools / Scripts / webkitpy / common / system / user.py
index 7a24f0c..494bf21 100644 (file)
@@ -43,14 +43,6 @@ from webkitpy.common.system.platforminfo import PlatformInfo
 _log = logging.getLogger(__name__)
 
 
-try:
-    import readline
-except ImportError:
-    if sys.platform != "win32":
-        # There is no readline module for win32, not much to do except cry.
-        _log.warn("Unable to import readline.")
-
-
 class User(object):
     DEFAULT_NO = 'n'
     DEFAULT_YES = 'y'
@@ -128,22 +120,6 @@ class User(object):
         # Note: Not thread safe: http://bugs.python.org/issue2320
         subprocess.call(args + files)
 
-    def _warn_if_application_is_xcode(self, edit_application):
-        if "Xcode" in edit_application:
-            print "Instead of using Xcode.app, consider using EDITOR=\"xed --wait\"."
-
-    def edit_changelog(self, files):
-        edit_application = os.environ.get("CHANGE_LOG_EDIT_APPLICATION")
-        if edit_application and self._platforminfo.is_mac():
-            # On Mac we support editing ChangeLogs using an application.
-            args = shlex.split(edit_application)
-            print "Using editor in the CHANGE_LOG_EDIT_APPLICATION environment variable."
-            print "Please quit the editor application when done editing."
-            self._warn_if_application_is_xcode(edit_application)
-            subprocess.call(["open", "-W", "-n", "-a"] + args + files)
-            return
-        self.edit(files)
-
     def page(self, message):
         pager = os.environ.get("PAGER") or "less"
         try: