From cf7a5905fdc7daf5dfd80f5ccd6f099c2b5f6087 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Thu, 30 Jan 2014 12:17:35 -0300 Subject: [PATCH] Remove unused code Fixes pyflakes error Signed-off-by: Gonzalo Odiard --- src/sugar3/activity/webkit1.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/sugar3/activity/webkit1.py b/src/sugar3/activity/webkit1.py index dfd0a502..86c6838a 100644 --- a/src/sugar3/activity/webkit1.py +++ b/src/sugar3/activity/webkit1.py @@ -19,7 +19,6 @@ import json import os import logging -from gi.repository import Gio from gi.repository import Gtk from gi.repository import GdkX11 assert GdkX11 @@ -196,10 +195,3 @@ class WebActivity(Gtk.Window): """ % env_json self._web_view.execute_script(script) - - def _app_scheme_cb(self, request, user_data): - path = os.path.join(self._bundle_path, - os.path.relpath(request.get_path(), "/")) - - request.finish(Gio.File.new_for_path(path).read(None), - -1, Gio.content_type_guess(path, None)[0])